#!/bin/sh
#
-# chkconfig: 2345 11 89
-# description: loads em8300 modules and uploads microcode
+# chkconfig: 2345 11 89
+# description: loads em8300 modules and uploads microcode
if [ ! -f /etc/sysconfig/em8300 ] ; then
exit 0
. /etc/sysconfig/em8300
-load_module () { run_cmd "Loading module $1" modprobe "$*"; }
+load_module () { run_cmd "$(nls 'Loading module') $1" modprobe "$*"; }
# See how we were called.
case "$1" in
run_cmd "Uploading em8300 microcode" "sh -c 'em8300_microcode_upload 2>/dev/null'"
;;
stop)
- run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
+ run_cmd "Removing em8300 modules" "sh -c 'rmmod em8300 adv717x bt865 2>/dev/null'"
;;
- restart)
+ status)
+ ;;
+ restart|reload)
$0 stop
$0 start
;;
*)
- msg_usage "$0 {start|stop|restart}"
+ msg_usage "$0 {start|stop|restart|reload|status}"
exit 1
esac
exit 0
-