Added periodic checks from RS to drivers.

This commit is contained in:
Jorrit Herder
2005-10-21 14:34:13 +00:00
parent 78f20c3959
commit 7a7e680da7
3 changed files with 12 additions and 18 deletions

View File

@@ -56,7 +56,6 @@ up()
{
service=$1
args=$2
device=$3
# Function to dynamically start a system service
@@ -64,10 +63,8 @@ up()
if disabled $service; then return; fi
# Service is not disabled. Try to bring it up.
command="/usr/sbin/$service"
if [ ! -z "$args" ]; then command="$command -args \"$args\""; fi
if [ ! -z "$device" ]; then command="$command -dev \"$device\""; fi
echo -n " $service"
command="/usr/sbin/$service $args"
eval service up $command
}
@@ -81,7 +78,7 @@ start)
# Start servers and drivers set at the boot monitor.
echo -n "Starting services:"
up random "" /dev/random
up random "-dev /dev/random -period 3HZ"
# load random number generator
if [ -f $RANDOM_FILE ]
@@ -97,11 +94,11 @@ start)
if grep " $driver " /etc/inet.conf > /dev/null 2>&1
then
eval arg=\$${driver}_arg
up $driver "$arg"
up $driver "$arg -period 5HZ"
fi
done
up inet ""
up printer "" /dev/lp
up inet "-period 3HZ"
up printer "-dev /dev/lp -period 10HZ"
echo .
# Network initialization.