From 517343d854d9fea81b300ce09f6a6e491acab6ed Mon Sep 17 00:00:00 2001 From: Michael Janczyk Date: Tue, 16 Sep 2008 13:56:48 +0000 Subject: Added support for shutdown via sysrq for all kernels. to shutdown pcs add "shutdown" into kernel-cmd, use witch quiet, so kernel infos hopefully will be suppressed git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2220 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/stage3-stuff/init | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'initramfs/stage3-stuff/init') diff --git a/initramfs/stage3-stuff/init b/initramfs/stage3-stuff/init index 306a2091..932bbe93 100755 --- a/initramfs/stage3-stuff/init +++ b/initramfs/stage3-stuff/init @@ -122,6 +122,33 @@ export KCMDLINE # read the system wide initramfs-setup and then the kernel commandline for opts in $(sed "s/#.*//" /etc/initramfs-setup) ${KCMDLINE} ; do case ${opts} in + # shut down pc + shutdown) + cat </proc/sysrq-trigger + ;; # from IPAPPEND BOOTIF=*) bootmac=$(echo ${opts} | sed "s/.*=01-//;s/-/:/g") -- cgit v1.2.3-55-g7522