diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-07 12:34:57 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-06-07 12:34:57 +0200 |
commit | d22b78be7b2b95ba028c6584e9ee5abb69a375cb (patch) | |
tree | 039da0ef61265cda4512279d36aea46c4670a715 /package/gpm/files/gpm.init | |
parent | 702e216210d58f1301c80d4e55af5d29f813eb19 (diff) | |
parent | 2e2eee9052d2c487d7114818ca446c370dba7f49 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/gpm/files/gpm.init')
-rw-r--r-- | package/gpm/files/gpm.init | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/package/gpm/files/gpm.init b/package/gpm/files/gpm.init new file mode 100644 index 000000000..812fc1bf7 --- /dev/null +++ b/package/gpm/files/gpm.init @@ -0,0 +1,28 @@ +#!/bin/sh +#PKG gpm +#INIT 80 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${gpm:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/sbin/gpm $gpm_flags + ;; +stop) + pkill gpm + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |