From 5d747bfd56692ae9bbd725f810aaac436334946d Mon Sep 17 00:00:00 2001 From: czesiek Date: Fri, 14 Feb 2014 14:03:22 +0000 Subject: [PATCH] Added initscript prototype with simple flagchecking --- initscript_proto.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 initscript_proto.sh diff --git a/initscript_proto.sh b/initscript_proto.sh new file mode 100755 index 0000000..53ff331 --- /dev/null +++ b/initscript_proto.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# check for the direct-connection flag +if [[ `grep --color=never i_should_not_do_this /proc/cmdline` ]]; +then + echo "present"; +else + echo "absent"; +fi