Advertisement
Guest User

S99funplug.sh

a guest
Mar 8th, 2013
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. #!/bin/sh
  2. #
  3. # S99funplug.sh - startup script for funplug starup
  4. #
  5. # This goes in /etc/rc.d and gets run at boot-time.
  6. #
  7. # 2013MAR03
  8.  
  9. FUNPLUG=/mnt/usb1/funplug_cn330.sh
  10. FUNPLUGRC=/ffp/etc/rc
  11.  
  12. case "$1" in
  13.  
  14. start)
  15.     if [ -x "$FUNPLUG" ] ; then
  16.                 chmod a+x $FUNPLUG
  17.         echo "start funplug"
  18.         $FUNPLUG
  19.     fi
  20.     ;;
  21.  
  22. stop)
  23.     if [ -x "$FUNPLUGRC" ] ; then
  24.         echo "stopping funplug"
  25.         $FUNPLUGRC stop
  26.     fi
  27.     ;;
  28.  
  29. *)
  30.     echo "usage: $0 { start | stop }" >&2
  31.     exit 1
  32.     ;;
  33.  
  34. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement