Browse Source

Added IPW_DEBUG env

Dmitry Yu Okunev 7 years ago
parent
commit
301e94f5e3
1 changed files with 4 additions and 0 deletions
  1. 4 0
      ipw

+ 4 - 0
ipw

@@ -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"