mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 22:13:01 +02:00
mdns-repeater: New package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
48
src/initscripts/packages/mdns-repeater
Normal file
48
src/initscripts/packages/mdns-repeater
Normal file
@@ -0,0 +1,48 @@
|
||||
#!/bin/sh
|
||||
########################################################################
|
||||
# Begin $rc_base/init.d/mdns-repeater
|
||||
########################################################################
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. ${rc_functions}
|
||||
|
||||
eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings)
|
||||
|
||||
INTERFACES=
|
||||
|
||||
if [ -n "${GREEN_DEV}" ]; then
|
||||
INTERFACES="${INTERFACES} ${GREEN_DEV}"
|
||||
fi
|
||||
|
||||
if [ -n "${BLUE_DEV}" ]; then
|
||||
INTERFACES="${INTERFACES} ${BLUE_DEV}"
|
||||
fi
|
||||
|
||||
case "${1}" in
|
||||
start)
|
||||
boot_mesg "Starting Multicast DNS Repeater..."
|
||||
loadproc /usr/bin/mdns-repeater ${INTERFACES}
|
||||
;;
|
||||
|
||||
stop)
|
||||
boot_mesg "Stopping Multicast DNS Repeater..."
|
||||
killproc /usr/bin/mdns-repeater
|
||||
;;
|
||||
|
||||
restart)
|
||||
${0} stop
|
||||
sleep 1
|
||||
${0} start
|
||||
;;
|
||||
|
||||
status)
|
||||
statusproc /usr/bin/mdns-repeater
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: ${0} {start|stop|restart|status}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/mdns-repeater
|
||||
Reference in New Issue
Block a user