[PC-BSD Commits] r20974 - pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts

svn at pcbsd.org svn at pcbsd.org
Wed Jan 16 08:07:31 PST 2013


Author: kris
Date: 2013-01-16 16:07:31 +0000 (Wed, 16 Jan 2013)
New Revision: 20974

Modified:
   pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh
Log:

Enable hal shutdown / reboot at system init



Modified: pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh
===================================================================
--- pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh	2013-01-16 15:59:45 UTC (rev 20973)
+++ pcbsd/current/overlays/desktop-overlay/usr/local/share/pcbsd/scripts/sys-init.sh	2013-01-16 16:07:31 UTC (rev 20974)
@@ -1,6 +1,10 @@
 #!/bin/sh
 # Script which does some first time init
 
+# Allow shutdown / reboot from hal
+polkit-action --set-defaults-any org.freedesktop.hal.power-management.shutdown yes
+polkit-action --set-defaults-any org.freedesktop.hal.power-management.reboot yes
+
 # Init the flash plugin for all users
 cd /home
 for i in `ls -d * 2>/dev/null`



More information about the Commits mailing list