diff options
Diffstat (limited to 'net/upclient/files/upclient.sh')
-rw-r--r-- | net/upclient/files/upclient.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/upclient/files/upclient.sh b/net/upclient/files/upclient.sh new file mode 100644 index 00000000000..db74076fc92 --- /dev/null +++ b/net/upclient/files/upclient.sh @@ -0,0 +1,15 @@ +#!/bin/sh + +pidfile=/var/run/upclient.pid + +if [ "$1" = "stop" ]; then + kill `cat $pidfile` + +else + if [ -x @PREFIX@/bin/upclient ] + then + @INSTALL@ -o nobody -m 644 /dev/null $pidfile + @SU@ -m nobody -c @PREFIX@/bin/upclient + echo -n ' upclient' + fi +fi |