From 795212636a4c9e78dd20acc69b6e8161a0c07c5b Mon Sep 17 00:00:00 2001 From: Tomas M Date: Sun, 23 Sep 2012 02:21:39 -0500 Subject: [PATCH] fix grep --- initramfs/cleanup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initramfs/cleanup b/initramfs/cleanup index 85664ec..0b37d17 100644 --- a/initramfs/cleanup +++ b/initramfs/cleanup @@ -68,7 +68,7 @@ if [ "$1" = "--init" ]; then mount -o remount,ro /memory/data 2>/dev/null # if debug is requested, start commandline prompt here - if grep -vq debug /proc/cmdline; then + if grep -q debug /proc/cmdline; then echo "Starting shell for debug" >/dev/console setsid sh -c 'exec sh < /dev/tty1 >/dev/tty1 2>&1' fi