initfile for apcupsd to add apcupsd to WEB-IF
authorPeter Pfeiffer <peterman@ipfire.org>
Sun, 6 Sep 2009 09:18:57 +0000 (11:18 +0200)
committerPeter Pfeiffer <peterman@ipfire.org>
Sun, 6 Sep 2009 09:18:57 +0000 (11:18 +0200)
config/rootfiles/packages/apcupsd
lfs/apcupsd

index f51255f1abe92e1bc4ff59b8d8509a51b32bffeb..7d816890004fd342b335118f8c25131149dbf539 100644 (file)
@@ -16,3 +16,7 @@ sbin/smtp
 #usr/share/hal/fdi/policy/20thirdparty
 #usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi
 #usr/share/man/man8/apcupsd.8
+etc/rc.d/init.d/apcupsd
+etc/rc.d/rc0.d/K35apcupsd
+etc/rc.d/rc3.d/S65apcupsd
+etc/rc.d/rc6.d/K35apcupsd
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)