diff options
author | Michael Lauer <mickey@vanille-media.de> | 2005-08-21 22:16:21 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-08-21 22:16:21 +0000 |
commit | 58960b40d7be51c5c696ba61ae9301ebb4b86be7 (patch) | |
tree | 46d04d504d45ba017846f8f001b4c370fa317450 /packages/obexpush/files/init | |
parent | 6080734a11b136ea0f4275959c9d3a1ab6eb6f61 (diff) |
add OBEX Push command line helpers
Diffstat (limited to 'packages/obexpush/files/init')
-rw-r--r-- | packages/obexpush/files/init | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/packages/obexpush/files/init b/packages/obexpush/files/init new file mode 100644 index 0000000000..ac1fd62ead --- /dev/null +++ b/packages/obexpush/files/init @@ -0,0 +1,29 @@ +#!/bin/sh +# +# /etc/init.d/obd: start or stop the OBEX Push helper daemon +# + +PARAMS="--mode OBEX --channel 10 --path /tmp/opd --sdp --metadata" + +case "$1" in + start) + echo -n "Starting OBEX Push helper: opd" + opd $PARAMS & + ;; + stop) + echo -n "Shutting down OBEX Push helper: opd" + killall opd + ;; + restart|force-reload) + echo -n "Restarting OBEX Push helper: opd" + killall opd + sleep 2 + obd $PARAMS & + ;; + *) + echo "Usage: /etc/init.d/obd {start|stop|restart|force-reload}" + exit 1 + ;; +esac + +exit 0 |