diff options
author | Michael K. Johnson <johnsonm@redhat.com> | 1998-04-20 21:00:12 +0000 |
---|---|---|
committer | Michael K. Johnson <johnsonm@redhat.com> | 1998-04-20 21:00:12 +0000 |
commit | e154febd27424f5aff307d80c577cb44279fbeb5 (patch) | |
tree | d3970a6af84c48919eda9cb32cbaa96e307d49d6 /rc.d | |
parent | c833c2cb490dd2e3c9fd4c3913d92aaee178c857 (diff) | |
download | initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.gz initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.bz2 initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.tar.xz initscripts-e154febd27424f5aff307d80c577cb44279fbeb5.zip |
reasonable status, restart, reload
Diffstat (limited to 'rc.d')
-rwxr-xr-x | rc.d/init.d/random | 16 |
1 files changed, 11 insertions, 5 deletions
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 |