summaryrefslogtreecommitdiffstats
path: root/initramfs/stage3-stuff/init
diff options
context:
space:
mode:
authorMichael Janczyk2008-09-16 15:56:48 +0200
committerMichael Janczyk2008-09-16 15:56:48 +0200
commit517343d854d9fea81b300ce09f6a6e491acab6ed (patch)
tree5a3107a40ca2c44d1e468ad9bf64b3d657480d6c /initramfs/stage3-stuff/init
parentexample for "new" pxelinux theme feature (diff)
downloadcore-517343d854d9fea81b300ce09f6a6e491acab6ed.tar.gz
core-517343d854d9fea81b300ce09f6a6e491acab6ed.tar.xz
core-517343d854d9fea81b300ce09f6a6e491acab6ed.zip
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
Diffstat (limited to 'initramfs/stage3-stuff/init')
-rwxr-xr-xinitramfs/stage3-stuff/init27
1 files changed, 27 insertions, 0 deletions
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 <<EOL
+
+
+
+ #####
+ # # # # # # ##### ##### # # # ####
+ # # # # # # # # ## # # #
+ ##### ###### # # # # # # # # #
+ # # # # # # # # # # # # ###
+ # # # # # # # # # # ## # #
+ ##### # # #### # # # # # ####
+
+ ###### ###### #####
+ # # #### # # # # # # # #
+ # # # # # # ## # # # #
+ # # # # # # # # # ###### #
+ # # # # # ## # # # # # #
+ # # # # ## ## # ## # # #
+ ###### #### # # # # # #####
+
+
+
+EOL
+ echo "o" >/proc/sysrq-trigger
+ ;;
# from IPAPPEND
BOOTIF=*)
bootmac=$(echo ${opts} | sed "s/.*=01-//;s/-/:/g")