fix debug
This commit is contained in:
parent
20037ac9cb
commit
07edd6a6c2
14
init
14
init
@ -100,10 +100,6 @@ cleanup() {
|
|||||||
udev) udevadm control --exit ;;
|
udev) udevadm control --exit ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# TODO re-do
|
|
||||||
# if debug mode off then restore kernel logging
|
|
||||||
[ "$debug" = 0 ] && printf 1 > /proc/sys/kernel/printk
|
|
||||||
|
|
||||||
# unmount pseudofs's
|
# unmount pseudofs's
|
||||||
umount /dev /sys /proc /tmp
|
umount /dev /sys /proc /tmp
|
||||||
}
|
}
|
||||||
@ -116,14 +112,8 @@ boot_system() {
|
|||||||
|
|
||||||
. /config || panic "failed to source config"
|
. /config || panic "failed to source config"
|
||||||
|
|
||||||
# TODO re-do
|
# debug shell commands
|
||||||
if [ "$debug" = 1 ]; then
|
[ "$debug" = 1 ] && set -x
|
||||||
# debug shell commands
|
|
||||||
set -x
|
|
||||||
else
|
|
||||||
# silence is golden
|
|
||||||
printf 0 > /proc/sys/kernel/printk
|
|
||||||
fi
|
|
||||||
|
|
||||||
#parse_cmdline
|
#parse_cmdline
|
||||||
mnt_pseudofs
|
mnt_pseudofs
|
||||||
|
Loading…
Reference in New Issue
Block a user