]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - src/initscripts/sysconfig/rc.local
Skip checkfstab if root is set by UUID.
[people/pmueller/ipfire-2.x.git] / src / initscripts / sysconfig / rc.local
index d106ac9021b92180b9c6943bad6c204a00489818..5b89b8279f3b3e591011bd8d0d10372d16fa6ebc 100644 (file)
@@ -21,4 +21,7 @@
 # Used for private calls after boot                                           #
 ###############################################################################
 
-
+# power button shutdown
+if grep -q '^button' /proc/modules ; then
+    ( head -1 /proc/acpi/event | grep -q 'button/power PWRF' && poweroff ) &
+fi