]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/apcupsd
initfile for apcupsd to add apcupsd to WEB-IF
[people/pmueller/ipfire-2.x.git] / lfs / apcupsd
index af6de2273e2bc04245753b8b3394f5ce76605930..6d6fc913d58c56a07f4b27712908be19cfc30c81 100644 (file)
@@ -80,5 +80,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && ./configure --prefix=/usr --enable-usb
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
+       install -v -m755 $(DIR_SRC)/config/apcupsd/apcupsd /etc/init.d/apcupsd
+       ln -sf ../init.d/apcupsd /etc/rc.d/rc3.d/S65apcupsd
+       ln -sf ../init.d/apcupsd /etc/rc.d/rc0.d/K35apcupsd
+       ln -sf ../init.d/apcupsd /etc/rc.d/rc6.d/K35apcupsd
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)