]> git.pld-linux.org Git - packages/rc-scripts.git/blob - rc-scripts-ups.patch
- new
[packages/rc-scripts.git] / rc-scripts-ups.patch
1 diff -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
16 diff -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.163041 seconds and 3 git commands to generate.