/recipes/openpli/pli-files/gsub.sh
Shell | 21 lines | 14 code | 4 blank | 3 comment | 1 complexity | e59d5a51612207e476c34624decd7509 MD5 | raw file
Possible License(s): BSD-3-Clause, GPL-2.0, GPL-3.0, LGPL-2.0, LGPL-2.1, LGPL-3.0
- #!/bin/sh
- #
- # start/stop gsub
- if ! [ -x /usr/bin/gSUB ]; then
- exit 0
- fi
- case "$1" in
- start)
- start-stop-daemon -S -b -x /usr/bin/gSUB
- ;;
- stop)
- start-stop-daemon -K -x /usr/bin/gSUB
- ;;
- *)
- ;;
- esac
- exit 0