Magellan Linux

Contents of /trunk/dracut/patches/dracut-012-sysvinit-compat.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1496 - (show annotations) (download)
Sun Aug 14 16:06:25 2011 UTC (12 years, 8 months ago) by niro
File size: 700 byte(s)
-added a patch to be compat with the reboot command of sysvinit
1 diff -Naur dracut-012/modules.d/99shutdown/shutdown dracut-012-magellan/modules.d/99shutdown/shutdown
2 --- dracut-012/modules.d/99shutdown/shutdown 2011-08-12 08:03:55.000000000 +0200
3 +++ dracut-012-magellan/modules.d/99shutdown/shutdown 2011-08-14 19:39:32.000000000 +0200
4 @@ -85,7 +85,7 @@
5 _check_shutdown final
6
7 getarg 'rd.break=shutdown' && emergency_shell -n cmdline "Break before shutdown"
8 -[ "$1" = "reboot" ] && reboot -f -d -n --no-wall
9 -[ "$1" = "poweroff" ] && poweroff -f -d -n --no-wall
10 -[ "$1" = "halt" ] && halt -f -d -n --no-wall
11 +[ "$1" = "reboot" ] && reboot -f -d -n
12 +[ "$1" = "poweroff" ] && poweroff -f -d -n
13 +[ "$1" = "halt" ] && halt -f -d -n
14 [ "$1" = "kexec" ] && kexec -e