debug
parent
b57ba5d9a3
commit
b0b806c272
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue