redmine

Added IPW_DEBUG env

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