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