English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/common-nfo/package/base-files/files/etc/init.d/boot

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3427 - (show annotations) (download)
Wed Aug 8 11:08:41 2007 UTC (6 years, 6 months ago) by tg
File size: 580 byte(s)
merge in trunk rev. 3426
1 #!/bin/sh
2 #FWINIT 10
3 [[ $1 = ?(auto)start ]] || exit 0
4
5 . /etc/functions.sh
6
7 [ -f /proc/jffs2_bbc ] && echo S >/proc/jffs2_bbc
8
9 mkdir -p /var/{log,run}
10 touch /var/log/{lastlog,wtmp}
11 [[ $FAILSAFE = true ]] && touch /tmp/.failsafe
12
13 HOSTNAME=
14 [[ -s /etc/hostname ]] && HOSTNAME=$(</etc/hostname)
15 HOSTNAME=${HOSTNAME%%.*}
16 echo ${HOSTNAME:=FreeWRT} >/proc/sys/kernel/hostname
17
18 (cd /etc/precopy; tar cf - .) | (cd /tmp; tar xphf -)
19 chown 0:0 /tmp; chmod 1777 /tmp
20
21 load_modules /etc/modules
22 for f in /etc/modules.d/*; do
23 [[ -e $f ]] && load_modules /etc/modules.d/*
24 break
25 done
26 exit 0

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20