mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
@@ -1,28 +0,0 @@
|
||||
#!/bin/sh
|
||||
# Begin $rc_base/init.d/apcupsd
|
||||
|
||||
# Based on sysklogd script from LFS-3.1 and earlier.
|
||||
|
||||
. /etc/sysconfig/rc
|
||||
. $rc_functions
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
boot_mesg "Starting apcupsd daemon..."
|
||||
loadproc apcupsd
|
||||
;;
|
||||
stop)
|
||||
boot_mesg "Stopping apcupsd daemon..."
|
||||
killproc apcupsd
|
||||
;;
|
||||
status)
|
||||
statusproc /sbin/apcupsd
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 (start|stop|status)"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# End $rc_base/init.d/apcupsd
|
||||
|
||||
@@ -81,7 +81,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
--with-cgi-bin=/srv/web/ipfire/cgi-bin
|
||||
cd $(DIR_APP) && make $(MAKETUNING)
|
||||
cd $(DIR_APP) && make install
|
||||
install -v -m755 $(DIR_SRC)/config/apcupsd/apcupsd /etc/init.d/apcupsd
|
||||
install -v -m755 $(DIR_SRC)/src/initscripts/init.d/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
|
||||
|
||||
Reference in New Issue
Block a user