summaryrefslogtreecommitdiff
path: root/user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-14 17:28:17 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-14 17:28:17 -0500
commit1fdd6e1d01436611217b6738fdc997e5af4a342b (patch)
tree7233fab85c1462915350a5cf30124f4d6438c290 /user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch
parentb7c1783e11101b34e7014a1bcdfd41f9673a6a10 (diff)
downloadpackages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.gz
packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.bz2
packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.tar.xz
packages-1fdd6e1d01436611217b6738fdc997e5af4a342b.zip
move consolekit2, py*, wine to user/
Diffstat (limited to 'user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch')
-rw-r--r--user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch b/user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch
new file mode 100644
index 000000000..2db9f032b
--- /dev/null
+++ b/user/consolekit2/0001-busybox-reboot-and-poweroff-support.patch
@@ -0,0 +1,40 @@
+From 5e557dd212657f7e75a0c4bd70d11ca06ccb3f84 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Mon, 4 Apr 2011 18:46:25 +0000
+Subject: [PATCH] busybox reboot and poweroff support
+
+---
+ tools/linux/ck-system-restart | 3 +++
+ tools/linux/ck-system-stop | 3 +++
+ 2 files changed, 6 insertions(+), 0 deletions(-)
+
+diff --git a/tools/linux/ck-system-restart b/tools/linux/ck-system-restart
+index 8e0664e..5cabb3d 100755
+--- a/tools/linux/ck-system-restart
++++ b/tools/linux/ck-system-restart
+@@ -7,6 +7,9 @@ if [ -x "/sbin/shutdown" ] ; then
+ elif [ -x "/usr/sbin/shutdown" ] ; then
+ /usr/sbin/shutdown -r now
+ exit $?
++elif [ -x "/sbin/reboot" ]; then
++ /sbin/reboot
++ exit $?
+ else
+ exit 1
+ fi
+diff --git a/tools/linux/ck-system-stop b/tools/linux/ck-system-stop
+index e26bca3..a0be3ac 100755
+--- a/tools/linux/ck-system-stop
++++ b/tools/linux/ck-system-stop
+@@ -7,6 +7,9 @@ if [ -x "/sbin/shutdown" ] ; then
+ elif [ -x "/usr/sbin/shutdown" ] ; then
+ /usr/sbin/shutdown -h now
+ exit $?
++elif [ -x "/sbin/poweroff" ] ; then
++ /sbin/poweroff
++ exit $?
+ else
+ exit 1
+ fi
+--
+1.7.4.2