fix grep
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ if [ "$1" = "--init" ]; then
|
|||||||
mount -o remount,ro /memory/data 2>/dev/null
|
mount -o remount,ro /memory/data 2>/dev/null
|
||||||
|
|
||||||
# if debug is requested, start commandline prompt here
|
# 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
|
echo "Starting shell for debug" >/dev/console
|
||||||
setsid sh -c 'exec sh < /dev/tty1 >/dev/tty1 2>&1'
|
setsid sh -c 'exec sh < /dev/tty1 >/dev/tty1 2>&1'
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user