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/rcS

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: 727 byte(s)
merge in trunk rev. 3426
1 #!/bin/sh
2 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
3 {
4 [[ -f /proc/diag/led/power ]] && echo f >/proc/diag/led/power
5 grep '^#FWINIT ' /etc/init.d/* | \
6 sort -nk2 | \
7 while read line; do
8 shebang=$(sed -n '1s/^#![ ]*//p' ${line%%:*})
9 case $shebang in
10 *[\ \ ]*) shebang=\'$(echo X"$shebang" | sed \
11 -e 's/^X//' -e "s/'/'\\\\''/g" \
12 -e 's/^\([^ ][^ ]*\)[ ]*$/\1/' \
13 -e 's/^\([^ ][^ ]*\)[ ][ ]*\(..*\)$/\1 \2/' \
14 -e 's/^\([^ ][^ ]*\) /\1'\'' '\''/')\' ;;
15 esac
16 ${shebang:-/bin/sh} ${line%%:*} autostart 2>&1
17 done
18 test -e /etc/rc.local && (/bin/sh /etc/rc.local) 2>&1
19 [[ -f /proc/diag/led/power ]] && echo 1 >/proc/diag/led/power
20 rm -f /tmp/.booting
21 } | logger -s -p 6 -t '' &

Properties

Name Value
svn:executable

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