initfile for apcupsd to add apcupsd to WEB-IF

This commit is contained in:
Peter Pfeiffer
2009-09-06 11:18:57 +02:00
parent 355e29d9f4
commit 92a0762c33
2 changed files with 8 additions and 0 deletions

View 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

View 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)