]> git.ipfire.org Git - ipfire-2.x.git/blame - src/rc.d/rc.sysinit
HinzugefĆ¼gt:
[ipfire-2.x.git] / src / rc.d / rc.sysinit
CommitLineData
cd1a2927
MT
1#!/bin/sh
2#
f8ae001e 3# rc.sysinit by the IPFire Team
cd1a2927
MT
4#
5
986e08d9 6eval $(/usr/local/bin/readhash /var/ipfire/main/settings)
cd1a2927
MT
7
8umask 022
9
10PATH=/bin:/sbin:/usr/bin:/usr/sbin
11export PATH
12
f8ae001e
MT
13PROGRESS=0
14NUMBEROFSCRIPTS=`ls -l /etc/boot.d | grep ^- | wc -l`
15progressbar()
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
25echo "Mounting /proc filesystem"
26mount -n -t proc /proc /proc
27
f8ae001e 28progressbar 0
cd1a2927 29
f8ae001e
MT
30list=`find /etc/boot.d -type f -maxdepth 1 | sort`
31for script in $list; do
32 . $script
33 let PROGRESS=$PROGRESS+1
34 progressbar $PROGRESS
cd1a2927 35done
cd1a2927 36
5fcb6d5a 37logger -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