redmine

Added IPW_DEBUG env

Showing 1 changed file with 4 additions and 0 deletions
... ... @@ -311,6 +311,10 @@ case "$CMD" in
fix) #fix all interfaces to config state
#brctl addif bond0 eth2
if [[ "$IPW_DEBUG" -ge "2" ]]; then
cat "$IPW_CONFIG_PATH" > /tmp/ipw.conf-fix.$(date +'%Y%m%d%H%M%S')
fi
if [[ "$IPW_CONFIG_PATH" != "/dev/null" ]]; then
if [[ "$(cat $IPW_CONFIG_PATH 2>/dev/null)" = "" ]]; then
eerror "Empty config file"
... ...