pull/5/head
Tomas M 2012-09-21 03:29:49 -05:00
parent b57ba5d9a3
commit b0b806c272
2 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,8 @@ init_devs
init_aufs init_aufs
init_zram init_zram
debug_start
init_union "$CHANGES" "$UNION" init_union "$CHANGES" "$UNION"
# find data dir with filesystem bundles # find data dir with filesystem bundles

View File

@ -8,6 +8,15 @@
# debug and output functions # debug and output functions
# ================================================================= # =================================================================
debug_start()
{
if grep /proc/cmdline debug; then
DEBUG_IS_ENABLED=1
else
DEBUG_IS_ENABLED=
fi
}
debug_log() debug_log()
{ {
if [ "$DEBUG_IS_ENABLED" ]; then if [ "$DEBUG_IS_ENABLED" ]; then