diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-30 20:06:55 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-30 20:06:55 +0100 |
commit | af7f93c01dcf16df34e6bcccfacca868b19d4247 (patch) | |
tree | 31fb1ed2cc1396c1718f5fd538b8c5450b91ddae /packages/bonjour/files | |
parent | 2a288bbc3638f6a77b5516968c839ac5b61d5c8a (diff) |
bonjour: add 107.6 (from gumstix)
Diffstat (limited to 'packages/bonjour/files')
-rw-r--r-- | packages/bonjour/files/bonjour.conf | 14 | ||||
-rwxr-xr-x | packages/bonjour/files/bonjour.init | 48 |
2 files changed, 62 insertions, 0 deletions
diff --git a/packages/bonjour/files/bonjour.conf b/packages/bonjour/files/bonjour.conf new file mode 100644 index 0000000000..951dd8488d --- /dev/null +++ b/packages/bonjour/files/bonjour.conf @@ -0,0 +1,14 @@ +Gumstix Web Server +_http._tcp. +80 +path=/ + +Gumstix TCP/IP Information +_http._tcp. +80 +path=/cgi-bin/ifconfig + +Gumstix SSH +_ssh._tcp. +22 +none diff --git a/packages/bonjour/files/bonjour.init b/packages/bonjour/files/bonjour.init new file mode 100755 index 0000000000..1413ca6c12 --- /dev/null +++ b/packages/bonjour/files/bonjour.init @@ -0,0 +1,48 @@ +#!/bin/sh +# +# A startup script for the Rendezvous mDNS Responder +# + +set -e + +RDV_CONF=/etc/bonjour.conf +prog=bonjour +exe=/usr/sbin/mdnsd + +start() { + echo -n "Starting $prog: " + start-stop-daemon --start -x $exe -- -f $RDV_CONF -b + echo +} + +stop() { + echo -n "Stopping $prog: " + start-stop-daemon --stop -x $exe + echo +} + +reload() +{ + echo -n "Reloading $prog:" + killall -HUP `basename $exe` + echo +} + +case "$1" in +start) + start + ;; +stop) + stop + ;; +reload) + reload + ;; +restart) + stop + start + ;; +*) + echo "Usage: bonjour {start|stop|reload|restart}" + exit 1 +esac |