jobextra/consolekit2/set_good_hpr_command.patch

35 lines
912 B
Diff

diff -Nuar -uar a/tools/linux/ck-system-restart c/tools/linux/ck-system-restart
--- a/tools/linux/ck-system-restart 2019-03-19 21:50:30.000000000 +1100
+++ c/tools/linux/ck-system-restart 2019-07-20 22:32:56.154875518 +1100
@@ -1,12 +1,3 @@
#!/bin/sh
-#Try for common tools
-if [ -x "/sbin/shutdown" ] ; then
- /sbin/shutdown -r now
- exit $?
-elif [ -x "/usr/sbin/shutdown" ] ; then
- /usr/sbin/shutdown -r now
- exit $?
-else
- exit 1
-fi
+/usr/bin/reboot
diff -Nuar -uar a/tools/linux/ck-system-stop c/tools/linux/ck-system-stop
--- a/tools/linux/ck-system-stop 2019-03-19 21:50:30.000000000 +1100
+++ c/tools/linux/ck-system-stop 2019-07-20 22:35:29.281538892 +1100
@@ -1,12 +1,3 @@
#!/bin/sh
-#Try for common tools
-if [ -x "/sbin/shutdown" ] ; then
- /sbin/shutdown -h now
- exit $?
-elif [ -x "/usr/sbin/shutdown" ] ; then
- /usr/sbin/shutdown -h now
- exit $?
-else
- exit 1
-fi
+/usr/bin/poweroff