]>
Commit | Line | Data |
---|---|---|
cd1a2927 MT |
1 | #!/bin/sh |
2 | # | |
f8ae001e | 3 | # rc.sysinit by the IPFire Team |
cd1a2927 MT |
4 | # |
5 | ||
986e08d9 | 6 | eval $(/usr/local/bin/readhash /var/ipfire/main/settings) |
cd1a2927 MT |
7 | |
8 | umask 022 | |
9 | ||
10 | PATH=/bin:/sbin:/usr/bin:/usr/sbin | |
11 | export PATH | |
12 | ||
f8ae001e MT |
13 | PROGRESS=0 |
14 | NUMBEROFSCRIPTS=`ls -l /etc/boot.d | grep ^- | wc -l` | |
15 | progressbar() | |
16 | { | |
17 | if [ $# != 1 ] | |
18 | then | |
19 | echo "Usage: progressbar {progress}" | |
20 | exit 1 | |
21 | fi | |
22 | echo "show $(( 65534 * $1 / $NUMBEROFSCRIPTS ))" > /proc/splash | |
23 | } | |
24 | ||
cd1a2927 MT |
25 | echo "Mounting /proc filesystem" |
26 | mount -n -t proc /proc /proc | |
27 | ||
f8ae001e | 28 | progressbar 0 |
cd1a2927 | 29 | |
f8ae001e MT |
30 | list=`find /etc/boot.d -type f -maxdepth 1 | sort` |
31 | for script in $list; do | |
32 | . $script | |
33 | let PROGRESS=$PROGRESS+1 | |
34 | progressbar $PROGRESS | |
cd1a2927 | 35 | done |
cd1a2927 | 36 | |
5fcb6d5a | 37 | logger -t ipfire "IPFire started." |
cd1a2927 MT |
38 | |
39 | # Send nice startup beep now | |
40 | /usr/bin/beep -l 75 -f 500 | |
41 | /usr/bin/beep -l 75 -f 1000 | |
42 | /usr/bin/beep -l 75 -f 2000 | |
43 | /usr/bin/beep -l 75 -f 3000 | |
f8ae001e | 44 |