wicd.rc 245 B

123456789101112131415161718192021222324
  1. #!/bin/sh
  2. #
  3. # /etc/rc.d/wicd: start/stop wicd daemon
  4. #
  5. case $1 in
  6. start)
  7. /usr/bin/wicd
  8. ;;
  9. stop)
  10. kill $(cat /var/run/wicd/wicd.pid)
  11. ;;
  12. restart)
  13. $0 stop
  14. $0 start
  15. ;;
  16. *)
  17. echo "usage: $0 [start|stop|restart]"
  18. exit 1
  19. ;;
  20. esac
  21. # End of file