From 92a0762c33e471def9bcdefefa6b906279fb996f Mon Sep 17 00:00:00 2001 From: Peter Pfeiffer Date: Sun, 6 Sep 2009 11:18:57 +0200 Subject: [PATCH 1/1] initfile for apcupsd to add apcupsd to WEB-IF --- config/rootfiles/packages/apcupsd | 4 ++++ lfs/apcupsd | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/config/rootfiles/packages/apcupsd b/config/rootfiles/packages/apcupsd index f51255f1ab..7d81689000 100644 --- a/config/rootfiles/packages/apcupsd +++ b/config/rootfiles/packages/apcupsd @@ -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 diff --git a/lfs/apcupsd b/lfs/apcupsd index af6de2273e..6d6fc913d5 100644 --- a/lfs/apcupsd +++ b/lfs/apcupsd @@ -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) -- 2.39.2