hal/tools Makefile.am, 1.24, 1.25 hal-system-power-reboot, NONE,
1.1 hal-system-power-shutdown, NONE, 1.1
Richard Hughes
hughsient at freedesktop.org
Mon Dec 12 14:15:59 PST 2005
Update of /cvs/hal/hal/tools
In directory gabe:/tmp/cvs-serv19365/tools
Modified Files:
Makefile.am
Added Files:
hal-system-power-reboot hal-system-power-shutdown
Log Message:
Add Shutdown() and Reboot() methods to HAL.
Index: Makefile.am
===================================================================
RCS file: /cvs/hal/hal/tools/Makefile.am,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- Makefile.am 9 Dec 2005 05:50:55 -0000 1.24
+++ Makefile.am 12 Dec 2005 22:15:57 -0000 1.25
@@ -49,6 +49,8 @@
hal-luks-setup hal-luks-remove \
hal-system-power-suspend \
hal-system-power-hibernate \
+ hal-system-power-shutdown \
+ hal-system-power-reboot \
hal-system-lcd-get-brightness \
hal-system-lcd-set-brightness \
hal-system-power-set-power-save \
--- NEW FILE: hal-system-power-reboot ---
#!/bin/sh
unsupported() {
echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
echo "No reboot script found" >&2
exit 1
}
#Try for common tools
else
if [ -x "/sbin/shutdown" ] ; then
/sbin/shutdown -r now
RET=$?
elif [ -x "/usr/sbin/shutdown" ] ; then
/usr/sbin/shutdown -r now
RET=$?
else
unsupported
fi
fi
exit $RET
--- NEW FILE: hal-system-power-shutdown ---
#!/bin/sh
unsupported() {
echo "org.freedesktop.Hal.Device.SystemPowerManagement.NotSupported" >&2
echo "No shutdown script found" >&2
exit 1
}
#Try for common tools
else
if [ -x "/sbin/shutdown" ] ; then
/sbin/shutdown -h now
RET=$?
elif [ -x "/usr/sbin/shutdown" ] ; then
/usr/sbin/shutdown -h now
RET=$?
else
unsupported
fi
fi
exit $RET
More information about the hal-commit
mailing list