SVN: rc-scripts/trunk/rc.d/init.d/local
glen
glen at pld-linux.org
Mon Dec 17 18:39:46 CET 2007
Author: glen
Date: Mon Dec 17 18:39:45 2007
New Revision: 9145
Modified:
rc-scripts/trunk/rc.d/init.d/local
Log:
- implement status
Modified: rc-scripts/trunk/rc.d/init.d/local
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/local (original)
+++ rc-scripts/trunk/rc.d/init.d/local Mon Dec 17 18:39:45 2007
@@ -15,14 +15,21 @@
# See how we were called.
case "$1" in
start)
- touch /var/lock/subsys/local
- . /etc/rc.d/rc.local
+ touch /var/lock/subsys/local
+ . /etc/rc.d/rc.local
;;
stop)
- rm -f /var/lock/subsys/local
+ rm -f /var/lock/subsys/local
+ ;;
+ status)
+ if [ -f /var/lock/subsys/local ]; then
+ nls 'rc.local has been started'
+ else
+ nls 'rc.local has not been started'
+ fi
;;
*)
- msg_usage "$0 {start|stop}"
+ msg_usage "$0 {start|stop|status}"
exit 3
esac
More information about the pld-cvs-commit
mailing list