From 07edd6a6c22d3c3397087615a9ff2f76d4beda59 Mon Sep 17 00:00:00 2001 From: illiliti Date: Wed, 19 Feb 2020 10:25:37 +0300 Subject: [PATCH] fix debug --- init | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/init b/init index 807a720..1f80620 100644 --- a/init +++ b/init @@ -100,10 +100,6 @@ cleanup() { udev) udevadm control --exit ;; esac - # TODO re-do - # if debug mode off then restore kernel logging - [ "$debug" = 0 ] && printf 1 > /proc/sys/kernel/printk - # unmount pseudofs's umount /dev /sys /proc /tmp } @@ -116,14 +112,8 @@ boot_system() { . /config || panic "failed to source config" -# TODO re-do -if [ "$debug" = 1 ]; then - # debug shell commands - set -x -else - # silence is golden - printf 0 > /proc/sys/kernel/printk -fi +# debug shell commands +[ "$debug" = 1 ] && set -x #parse_cmdline mnt_pseudofs