ALT Linux Bugzilla
– Attachment 3967 Details for
Bug 10326
halt = poweroff
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
патч для возможности выбора halt/poweroff
halt.diff (text/plain), 1021 bytes, created by
Sergey Y. Afonin
on 2009-10-07 13:17:14 MSD
(
hide
)
Description:
патч для возможности выбора halt/poweroff
Filename:
MIME Type:
Creator:
Sergey Y. Afonin
Created:
2009-10-07 13:17:14 MSD
Size:
1021 bytes
patch
obsolete
>--- halt.old 2009-10-01 05:03:02 +0500 >+++ halt 2009-10-07 12:54:35 +0500 >@@ -19,6 +19,9 @@ > > unset action > >+[ -f /etc/sysconfig/halt ] && . /etc/sysconfig/halt >+[ -n "$HALTCMD" ] || HALTCMD=/sbin/poweroff >+ > action_begin_msg() > { > [ -z "$*" ] || printf '%s ' "$*" >@@ -83,8 +86,12 @@ > > # See how we were called. > case "$0" in >- *halt|*poweroff) >+ *halt) > message='The system is halted' >+ command=$HALTCMD >+ ;; >+ *poweroff) >+ message='The system is halted; trying to turn off the power' > command=/sbin/poweroff > ;; > *reboot) >@@ -175,14 +182,14 @@ > if [ -x "$UPSCTL" -a -f /etc/apcupsd/powerfail ]; then > action 'Attempting to turn the UPS off:' "$UPSCTL" killpower > message='The system is halted' >- command=/sbin/poweroff >+ command=$HALTCMD > fi > > UPSCTL=/sbin/upsdrvctl > if [ -x "$UPSCTL" -a -f /etc/killpower ]; then > action 'Attempting to turn the UPS off:' "$UPSCTL" shutdown > message='The system is halted' >- command=/sbin/poweroff >+ command=$HALTCMD > fi > > if [ "$command" = /sbin/poweroff ]; then
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 10326
: 3967