/recipes/openpli/pli-files/gsub.sh

https://bitbucket.org/lokkju/openpli-oe · Shell · 21 lines · 14 code · 4 blank · 3 comment · 1 complexity · e59d5a51612207e476c34624decd7509 MD5 · raw file

  1. #!/bin/sh
  2. #
  3. # start/stop gsub
  4. if ! [ -x /usr/bin/gSUB ]; then
  5. exit 0
  6. fi
  7. case "$1" in
  8. start)
  9. start-stop-daemon -S -b -x /usr/bin/gSUB
  10. ;;
  11. stop)
  12. start-stop-daemon -K -x /usr/bin/gSUB
  13. ;;
  14. *)
  15. ;;
  16. esac
  17. exit 0