summaryrefslogtreecommitdiff
path: root/rc.shutdown
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-08-04 07:54:32 +0000
committerTobias Powalowski <tpowa@archlinux.org>2006-08-04 07:54:32 +0000
commit8d399cf84d6d6192a13286e33258aaa369eee1bb (patch)
tree53c3dfe11284b59bbb831ea8681c07c3ef1ab543 /rc.shutdown
parent977797d7a67033d03c4be04dba5b789ecdf2a36f (diff)
'upgpkg: added kexec support to rc.shutdown'
Diffstat (limited to 'rc.shutdown')
-rwxr-xr-xrc.shutdown2
1 files changed, 2 insertions, 0 deletions
diff --git a/rc.shutdown b/rc.shutdown
index 4b3105d..e4baa7f 100755
--- a/rc.shutdown
+++ b/rc.shutdown
@@ -92,6 +92,8 @@ if [ "$RUNLEVEL" = "0" ]; then
else
printsep
printhl "${C_H2}REBOOTING"
+ # adding kexec support
+ [ -x /usr/sbin/kexec ] && /usr/sbin/kexec -e > /dev/null 2>&1
/sbin/reboot -d -f -i
fi