فهرست منبع

fix failsafe ip deconfig on AR23xx devices without ADM or Marvell switch

SVN-Revision: 20733
Jo-Philipp Wich 16 سال پیش
والد
کامیت
44810702d2
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros

+ 2 - 0
target/linux/atheros/base-files/lib/preinit/15_preinit_iface_atheros

@@ -29,5 +29,7 @@ preinit_ip_deconfig() {
 	        -e "/sys/bus/mdio_bus/drivers/Marvell 88E6060/0:10" ]; then
 		vconfig rem eth0.1 2>/dev/null
 		ifconfig $pi_ifname down
+	elif [ -n "$pi_ifname" ]; then
+		ifconfig $pi_ifname 0.0.0.0
 	fi
 }