Driver mapping refactory.
VFS CHANGES: - dmap table no longer statically initialized in VFS - Dropped FSSIGNON svrctl call no longer used by INET INET CHANGES: - INET announces its presence to VFS just like any other driver RS CHANGES: - The boot image dev table contains all the data to initialize VFS' dmap table - RS interface supports asynchronous up and update operations now - RS interface extended to support driver style and flags
This commit is contained in:
8
etc/rc
8
etc/rc
@@ -16,14 +16,16 @@ usage()
|
||||
exec intr sh
|
||||
}
|
||||
|
||||
up()
|
||||
upopt()
|
||||
{
|
||||
opt=$1
|
||||
shift
|
||||
service=$1
|
||||
shift
|
||||
|
||||
# Function to dynamically start a system service
|
||||
echo -n " $service"
|
||||
service up /sbin/$service "$@"
|
||||
service $opt up /sbin/$service "$@"
|
||||
}
|
||||
|
||||
while getopts 'saf' opt
|
||||
@@ -59,7 +61,7 @@ start)
|
||||
|
||||
if [ "`sysenv debug_fkeys`" != 0 ]
|
||||
then
|
||||
up is -period 5HZ
|
||||
upopt -n is -period 5HZ
|
||||
fi
|
||||
echo .
|
||||
|
||||
|
||||
17
etc/usr/rc
17
etc/usr/rc
@@ -54,6 +54,13 @@ daemonize()
|
||||
|
||||
up()
|
||||
{
|
||||
upopt " " "$@"
|
||||
}
|
||||
|
||||
upopt()
|
||||
{
|
||||
opt=$1
|
||||
shift
|
||||
service=$1
|
||||
shift
|
||||
|
||||
@@ -64,7 +71,7 @@ up()
|
||||
|
||||
# Service is not disabled. Try to bring it up.
|
||||
echo -n " $service"
|
||||
service up /usr/sbin/$service "$@"
|
||||
service $opt up /usr/sbin/$service "$@"
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +87,7 @@ start)
|
||||
|
||||
# Start servers and drivers set at the boot monitor.
|
||||
echo -n "Starting services:"
|
||||
up random -dev /dev/random -period 3HZ
|
||||
upopt -n random -dev /dev/random -devstyle STYLE_DEVA -period 3HZ
|
||||
|
||||
# load random number generator
|
||||
if [ -f $RANDOM_FILE ]
|
||||
@@ -100,9 +107,9 @@ start)
|
||||
eval up $driver $arg -period 5HZ
|
||||
fi
|
||||
done
|
||||
up inet -script /etc/rs.inet
|
||||
up printer -dev /dev/lp -period 10HZ
|
||||
up ipc
|
||||
upopt -n inet -script /etc/rs.inet -dev /dev/ip -devstyle STYLE_CLONE
|
||||
upopt -n printer -dev /dev/lp -period 10HZ
|
||||
upopt -n ipc
|
||||
echo .
|
||||
|
||||
# Network initialization.
|
||||
|
||||
Reference in New Issue
Block a user