S03rclocal 262 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. THIS=$(basename $0)
  3. case "$1" in
  4. start)
  5. if /etc/rc.local; then
  6. echo "Starting rc.local: OK"
  7. exit 0
  8. else
  9. echo "Starting rc.local: ERROR"
  10. exit 1
  11. fi
  12. ;;
  13. stop)
  14. ;;
  15. *)
  16. echo "Usage: $0 {start|stop}" >&2
  17. exit 2
  18. ;;
  19. esac