diff --git a/initscript/lfs/Makefile.am b/initscript/lfs/Makefile.am
index d5e33f8..d7c509a 100644
a
|
b
|
|
19 | 19 | |
20 | 20 | initddir = $(sysconfdir)/rc.d/init.d |
21 | 21 | |
22 | | EXTRA_DIST = avahi.in |
23 | | |
24 | 22 | initd_SCRIPTS = avahi |
25 | 23 | |
26 | 24 | CLEANFILES = avahi |
27 | 25 | |
28 | | avahi: avahi.in |
29 | | chmod +x $@ |
| 26 | avahi: |
| 27 | chmod +x avahi |
| 28 | |
| 29 | install: install-am |
| 30 | ln -sf ../init.d/avahi /etc/rc.d/rc0.d/K28avahi |
| 31 | ln -sf ../init.d/avahi /etc/rc.d/rc1.d/K28avahi |
| 32 | ln -sf ../init.d/avahi /etc/rc.d/rc2.d/K49avahi |
| 33 | ln -sf ../init.d/avahi /etc/rc.d/rc3.d/S21avahi |
| 34 | ln -sf ../init.d/avahi /etc/rc.d/rc4.d/S21avahi |
| 35 | ln -sf ../init.d/avahi /etc/rc.d/rc5.d/S21avahi |
| 36 | ln -sf ../init.d/avahi /etc/rc.d/rc6.d/K28avahi |
diff --git a/initscript/lfs/avahi b/initscript/lfs/avahi
index e69de29..ba3672a 100644
a
|
b
|
|
| 1 | #!/bin/sh |
| 2 | ######################################################################## |
| 3 | # Begin $rc_base/init.d/avahi |
| 4 | # |
| 5 | # Description : Avahi daemon loader |
| 6 | # |
| 7 | # Authors : William Immendorf - will.immendorf@gmail.com |
| 8 | # |
| 9 | # Version : 00.00 |
| 10 | # |
| 11 | # Notes : Based off of the LFS 6.4 sysklogd script. |
| 12 | # |
| 13 | ######################################################################## |
| 14 | |
| 15 | . /etc/sysconfig/rc |
| 16 | . ${rc_functions} |
| 17 | |
| 18 | case "${1}" in |
| 19 | start) |
| 20 | boot_mesg "Starting the Avahi daemon..." |
| 21 | loadproc avahi-daemon -D |
| 22 | ;; |
| 23 | |
| 24 | stop) |
| 25 | boot_mesg "Stopping the Avahi daemon..." |
| 26 | avahi-daemon -k |
| 27 | evaluate_retval |
| 28 | ;; |
| 29 | |
| 30 | reload) |
| 31 | boot_mesg "Reloading the Avahi daemon..." |
| 32 | reloadproc avahi-daemon -r |
| 33 | ;; |
| 34 | restart) |
| 35 | ${0} stop |
| 36 | sleep 1 |
| 37 | ${0} start |
| 38 | ;; |
| 39 | |
| 40 | status) |
| 41 | statusproc avahi-daemon |
| 42 | ;; |
| 43 | *) |
| 44 | echo "Usage: ${0} {start|stop|reload|restart|status}" |
| 45 | exit 1 |
| 46 | ;; |
| 47 | esac |
| 48 | |
| 49 | # End $rc_base/init.d/avahi |
diff --git a/initscript/lfs/avahi.in b/initscript/lfs/avahi.in
deleted file mode 100644
index ba3672a..0000000
+
|
-
|
|
1 | | #!/bin/sh |
2 | | ######################################################################## |
3 | | # Begin $rc_base/init.d/avahi |
4 | | # |
5 | | # Description : Avahi daemon loader |
6 | | # |
7 | | # Authors : William Immendorf - will.immendorf@gmail.com |
8 | | # |
9 | | # Version : 00.00 |
10 | | # |
11 | | # Notes : Based off of the LFS 6.4 sysklogd script. |
12 | | # |
13 | | ######################################################################## |
14 | | |
15 | | . /etc/sysconfig/rc |
16 | | . ${rc_functions} |
17 | | |
18 | | case "${1}" in |
19 | | start) |
20 | | boot_mesg "Starting the Avahi daemon..." |
21 | | loadproc avahi-daemon -D |
22 | | ;; |
23 | | |
24 | | stop) |
25 | | boot_mesg "Stopping the Avahi daemon..." |
26 | | avahi-daemon -k |
27 | | evaluate_retval |
28 | | ;; |
29 | | |
30 | | reload) |
31 | | boot_mesg "Reloading the Avahi daemon..." |
32 | | reloadproc avahi-daemon -r |
33 | | ;; |
34 | | restart) |
35 | | ${0} stop |
36 | | sleep 1 |
37 | | ${0} start |
38 | | ;; |
39 | | |
40 | | status) |
41 | | statusproc avahi-daemon |
42 | | ;; |
43 | | *) |
44 | | echo "Usage: ${0} {start|stop|reload|restart|status}" |
45 | | exit 1 |
46 | | ;; |
47 | | esac |
48 | | |
49 | | # End $rc_base/init.d/avahi |