. removed readclock command and cmos driver.
. replaced by a readclock 'driver' that runs once, a re-imported version of the minix 2.0.4 readclock command. . this has also restored cmos writing. . readclock wrapper script calls service command to run /bin/readclock.drv once.
This commit is contained in:
@@ -19,7 +19,7 @@ case $#:$1 in
|
||||
ttypa ttypb ttypc ttypd ttype ttypf \
|
||||
ttyq0 ttyq1 ttyq2 ttyq3 ttyq4 ttyq5 ttyq6 ttyq7 ttyq8 ttyq9 \
|
||||
ttyqa ttyqb ttyqc ttyqd ttyqe ttyqf \
|
||||
eth klog random cmos rescue
|
||||
eth klog random rescue
|
||||
;;
|
||||
0:|1:-\?)
|
||||
cat >&2 <<EOF
|
||||
@@ -41,7 +41,6 @@ Where key is one of the following:
|
||||
audio mixer # Make audio devices
|
||||
klog # Make /dev/klog
|
||||
random # Make /dev/random, /dev/urandom
|
||||
cmos # Make /dev/cmos
|
||||
kbd # Make /dev/kbd
|
||||
kbdaux # Make /dev/kbdaux
|
||||
rescue # Make /dev/rescue
|
||||
@@ -243,11 +242,6 @@ do
|
||||
$e mknod urandom c 16 0; $e chmod 644 urandom
|
||||
$e chgrp operator random urandom
|
||||
;;
|
||||
cmos)
|
||||
# cmos device (set/get system time).
|
||||
$e mknod cmos c 17 0
|
||||
$e chmod 600 cmos
|
||||
;;
|
||||
rescue)
|
||||
# rescue device
|
||||
$e mknod rescue b 9 0
|
||||
|
||||
@@ -38,6 +38,7 @@ usr: \
|
||||
/usr/bin/makewhatis \
|
||||
/usr/bin/mkdep \
|
||||
/usr/bin/mkdist \
|
||||
/bin/readclock \
|
||||
/bin/setup \
|
||||
/usr/bin/binsizes \
|
||||
/usr/bin/rotate \
|
||||
@@ -133,6 +134,9 @@ clean:
|
||||
/usr/bin/rotate: rotate.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/bin/readclock: readclock.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
/bin/setup: setup.sh
|
||||
install -m 755 -c -o bin $? $@
|
||||
|
||||
|
||||
5
commands/scripts/readclock.sh
Normal file
5
commands/scripts/readclock.sh
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
if [ $# -gt 0 ]
|
||||
then ARGS="-args $@"
|
||||
fi
|
||||
/bin/service up /sbin/readclock.drv -config /etc/drivers.conf -script /etc/rs.single $ARGS
|
||||
Reference in New Issue
Block a user