summaryrefslogtreecommitdiff
path: root/recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch')
-rw-r--r--recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch b/recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch
new file mode 100644
index 0000000000..2255886968
--- /dev/null
+++ b/recipes/gpe-conf/gpe-conf-0.2.7/poweroff.patch
@@ -0,0 +1,11 @@
+--- gpe-conf/suid.c~ 2008-06-05 12:41:26.000000000 +0200
++++ gpe-conf/suid.c 2008-06-05 12:41:26.000000000 +0200
+@@ -454,7 +454,7 @@
+ else if (strcmp (cmd, "SHDN") == 0) // shutdown device
+ {
+ fscanf (in, "%100s", arg2);
+- system ("poweroff");
++ system ("/sbin/poweroff");
+ }
+ else if (strcmp (cmd, "MODP") == 0) /* modprobe kernel module */
+ {