From e154febd27424f5aff307d80c577cb44279fbeb5 Mon Sep 17 00:00:00 2001 From: "Michael K. Johnson" Date: Mon, 20 Apr 1998 21:00:12 +0000 Subject: reasonable status, restart, reload --- rc.d/init.d/random | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'rc.d/init.d/random') diff --git a/rc.d/init.d/random b/rc.d/init.d/random index 686c80cc..24f08d07 100755 --- a/rc.d/init.d/random +++ b/rc.d/init.d/random @@ -37,14 +37,20 @@ case "$1" in rm -f /var/lock/subsys/random ;; status) - status random + # this is way overkill, but at least we have some status output... + if [ -c /dev/random ] ; then + echo "The random data source exists" + else + echo "The random data source is missing" + fi ;; - restart) - $0 stop - $0 start + restart|reload) + # do not do anything; this is unreasonable ;; *) - echo "Usage: random {start|stop|restart|status}" + # do not advertise unreasonable commands that there is no reason + # to use with this device + echo "Usage: random {start|stop}" exit 1 esac -- cgit v1.2.1