aboutsummaryrefslogtreecommitdiffstats
path: root/rc.d/rcS.d/320-getkey.sh
diff options
context:
space:
mode:
Diffstat (limited to 'rc.d/rcS.d/320-getkey.sh')
-rwxr-xr-xrc.d/rcS.d/320-getkey.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/rc.d/rcS.d/320-getkey.sh b/rc.d/rcS.d/320-getkey.sh
new file mode 100755
index 00000000..61daee16
--- /dev/null
+++ b/rc.d/rcS.d/320-getkey.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+[[ $(type -t strstr) = "function" ]] || . /etc/init.d/functions
+[[ $cmdline ]] || cmdline=$(cat /proc/cmdline)
+
+if strstr "$cmdline" confirm ; then
+ touch /var/run/confirm
+fi