From b0b806c27244546a0167e06851b808986056e3e5 Mon Sep 17 00:00:00 2001 From: Tomas M Date: Fri, 21 Sep 2012 03:29:49 -0500 Subject: [PATCH] debug --- initramfs/init | 2 ++ livekitlib | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/initramfs/init b/initramfs/init index 1482b56..8105635 100644 --- a/initramfs/init +++ b/initramfs/init @@ -22,6 +22,8 @@ init_devs init_aufs init_zram +debug_start + init_union "$CHANGES" "$UNION" # find data dir with filesystem bundles diff --git a/livekitlib b/livekitlib index 5e65907..befa223 100644 --- a/livekitlib +++ b/livekitlib @@ -8,6 +8,15 @@ # debug and output functions # ================================================================= +debug_start() +{ + if grep /proc/cmdline debug; then + DEBUG_IS_ENABLED=1 + else + DEBUG_IS_ENABLED= + fi +} + debug_log() { if [ "$DEBUG_IS_ENABLED" ]; then