SOURCES: afbinit.init - added actions: force-reload, status (oblig...
qboosh
qboosh at pld-linux.org
Fri Feb 8 19:08:36 CET 2008
Author: qboosh Date: Fri Feb 8 18:08:36 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- added actions: force-reload, status (obligatory), try-restart (optional)
- binary will always exist (packaged with script)
- fixed exit code returning
---- Files affected:
SOURCES:
afbinit.init (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SOURCES/afbinit.init
diff -u SOURCES/afbinit.init:1.1 SOURCES/afbinit.init:1.2
--- SOURCES/afbinit.init:1.1 Tue Jan 29 21:23:11 2008
+++ SOURCES/afbinit.init Fri Feb 8 19:08:31 2008
@@ -17,17 +17,11 @@
ARCH=$(uname -m)
# If this is not sparc64, get out of here.
if [ "$ARCH" != "sparc64" ]; then
- echo "$ARCH cannot have AFB"
- return 1
-fi
-
-# The microcode loader binary and the microcode
-# itself must exist.
-if [ ! -x $LOADER ]; then
- echo "Missing afbinit"
+ echo "$ARCH cannot have AFB"
return 1
fi
+# The microcode must exist.
if [ ! -f $UCODE ]; then
echo "Missing microcode"
return 1
@@ -52,14 +46,19 @@
done
}
+RETVAL=0
case "$1" in
- start|restart|reload)
+ start|restart|try-restart|reload|force-reload)
start
;;
stop)
;;
+ status)
+ echo "AFB devices present: $afb_devs"
+ ;;
*)
- msg_usage "$0 {start|stop|restart|reload}"
+ msg_usage "$0 {start|stop|restart|try-restart|reload|force-reload}"
exit 3
;;
esac
+exit $RETVAL
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/afbinit.init?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list