]>
Commit | Line | Data |
---|---|---|
ddcd60f7 MT |
1 | #!/bin/sh |
2 | ######################################################################## | |
3 | # Begin $rc_base/init.d/mdns-repeater | |
4 | ######################################################################## | |
5 | ||
6 | . /etc/sysconfig/rc | |
7 | . ${rc_functions} | |
8 | ||
9 | eval $(/usr/local/bin/readhash /var/ipfire/ethernet/settings) | |
10 | ||
11 | INTERFACES= | |
12 | ||
13 | if [ -n "${GREEN_DEV}" ]; then | |
14 | INTERFACES="${INTERFACES} ${GREEN_DEV}" | |
15 | fi | |
16 | ||
17 | if [ -n "${BLUE_DEV}" ]; then | |
18 | INTERFACES="${INTERFACES} ${BLUE_DEV}" | |
19 | fi | |
20 | ||
21 | case "${1}" in | |
22 | start) | |
23 | boot_mesg "Starting Multicast DNS Repeater..." | |
24 | loadproc /usr/bin/mdns-repeater ${INTERFACES} | |
25 | ;; | |
26 | ||
27 | stop) | |
28 | boot_mesg "Stopping Multicast DNS Repeater..." | |
29 | killproc /usr/bin/mdns-repeater | |
30 | ;; | |
31 | ||
32 | restart) | |
33 | ${0} stop | |
34 | sleep 1 | |
35 | ${0} start | |
36 | ;; | |
37 | ||
38 | status) | |
39 | statusproc /usr/bin/mdns-repeater | |
40 | ;; | |
41 | ||
42 | *) | |
43 | echo "Usage: ${0} {start|stop|restart|status}" | |
44 | exit 1 | |
45 | ;; | |
46 | esac | |
47 | ||
48 | # End $rc_base/init.d/mdns-repeater |