From e6d28cc5aaeabd53ed652eec63c2c22bb3f7e97c Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 2 Sep 1999 00:57:26 +0000 Subject: add interactive prompt to make Cristian & Preston happy --- rc.d/rc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'rc.d/rc') diff --git a/rc.d/rc b/rc.d/rc index bd0448c7..994814a8 100755 --- a/rc.d/rc +++ b/rc.d/rc @@ -21,10 +21,13 @@ export runlevel previous # See if we want to be in user confirmation mode if [ "$previous" = "N" ]; then - if grep -i confirm /proc/cmdline >/dev/null ; then + if grep -i confirm /proc/cmdline >/dev/null || [ -f /tmp/confirm ] ; then + rm -f /tmp/confirm CONFIRM=yes + echo "Entering interactive startup" else CONFIRM= + echo "Entering non-interactive startup" fi fi -- cgit