]> git.pld-linux.org Git - packages/rc-scripts.git/blame - rc-scripts-ups.patch
- fix URL
[packages/rc-scripts.git] / rc-scripts-ups.patch
CommitLineData
4a6dccba
JK
1diff -durN rc-scripts-0.3.1.orig/rc.d/rc.shutdown rc-scripts-0.3.1/rc.d/rc.shutdown
2--- rc-scripts-0.3.1.orig/rc.d/rc.shutdown Sun Jan 27 03:13:29 2002
3+++ rc-scripts-0.3.1/rc.d/rc.shutdown Fri Nov 14 10:08:21 2003
4@@ -90,6 +90,11 @@
5 if [ "$runlevel" = "0" ] ; then
6 show "The system is halted"; ok
7 [ -f /fastboot ] && (show "On the next boot fsck will be skipped."; ok)
8+
9+ if [ -x /sbin/poweroff-ups -a -f /etc/killpower -a -f /etc/sysconfig/ups ] ; then
10+ . /etc/sysconfig/ups
11+ is_yes "$POWEROFF_UPS" && /sbin/poweroff-ups
12+ fi
13 eval halt -d -p
14 else
15 show "Please stand by while rebooting the system"; ok
16diff -durN rc-scripts-0.3.1.orig/rc.d/rc.sysinit rc-scripts-0.3.1/rc.d/rc.sysinit
17--- rc-scripts-0.3.1.orig/rc.d/rc.sysinit Fri Nov 14 09:27:20 2003
18+++ rc-scripts-0.3.1/rc.d/rc.sysinit Fri Nov 14 10:08:20 2003
19@@ -574,7 +574,7 @@
20 fi
21
22 # Clean up /etc.
23-rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff
24+rm -f /fastboot /fsckoptions /forcefsck /halt /poweroff /etc/killpower
25
26 # Clean up /var
27 # I'd use find, but /usr may not be mounted.
This page took 0.107608 seconds and 4 git commands to generate.