-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Avahi,
I think I oversaw two issues with the lfs initscripts. They are: 1. I didn't use a sed to redict the .in file to a bootscript because there was nothing to sed. However, this causes chown to fail because it cant find the 'avahi' bootscript. I fixed that in the patch by adding a cat to redict the .in file to the bootscript itself. 2. And also, I forgot to make symlinks to the bootscript in the makefile, because that is what LFS does. So I added the ln commands to make the symlinks. Please put this patch in 0.6.25 ASAP. William -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAknaFJIACgkQoCo9f2PXIGagvQCgyX475nsPcuoOP5A0ybgnHuKf +jwAnjKdYvox0d6Qo1h97SR+w38qAE5y =DQ2T -----END PGP SIGNATURE-----
diff --git a/initscript/lfs/Makefile.am b/initscript/lfs/Makefile.am
index d5e33f8..a4ca075 100644
--- a/initscript/lfs/Makefile.am
+++ b/initscript/lfs/Makefile.am
@@ -26,4 +26,14 @@ initd_SCRIPTS = avahi
CLEANFILES = avahi
avahi: avahi.in
+ cat avahi.in > avahi
chmod +x $@
+
+install: install-am
+ ln -sfv ../init.d/avahi /etc/rc.d/rc0.d/K28avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc1.d/K28avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc2.d/K49avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc3.d/S21avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc4.d/S21avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc5.d/S21avahi
+ ln -sfv ../init.d/avahi /etc/rc.d/rc6.d/K28avahi
diff --git a/initscript/lfs/avahi.in b/initscript/lfs/avahi.in
index ba3672a..fd76be1 100644
--- a/initscript/lfs/avahi.in
+++ b/initscript/lfs/avahi.in
@@ -24,6 +24,7 @@ case "${1}" in
stop)
boot_mesg "Stopping the Avahi daemon..."
avahi-daemon -k
+ # This call to eveluate_retval (a function from the LFS initscripts, it displays a OK or a FAIL message depending on whenther it suceeded or not) is a workaround because I can't use killproc for the avahi daemon.
evaluate_retval
;;
avahi-lfs-initscript-fixes.patch.sig
Description: PGP signature
_______________________________________________ avahi mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/avahi
