summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/vyatta-boot-config-loader9
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/vyatta-boot-config-loader b/scripts/vyatta-boot-config-loader
index aead348..b445d9e 100755
--- a/scripts/vyatta-boot-config-loader
+++ b/scripts/vyatta-boot-config-loader
@@ -15,7 +15,14 @@ do_log () {
}
do_commit () {
- $COMMIT "$@" >>$COMMIT_LOG
+ # Check if debug is enabled in the kernel command line
+ if [ ! grep vyos-debug /proc/cmdline > /dev/null ]; then
+ debug=""
+ else
+ debug="yes"
+ fi
+
+ VYOS_DEBUG=$debug $COMMIT "$@" >>$COMMIT_LOG
}
trace () {