mirror of https://github.com/OpenIPC/firmware.git
				
				
				
			Fix DHCP trouble and some updates
							parent
							
								
									162fcab214
								
							
						
					
					
						commit
						4fdcb32429
					
				|  | @ -89,8 +89,9 @@ BR2_PACKAGE_WPA_SUPPLICANT=y | |||
| BR2_PACKAGE_WPA_SUPPLICANT_CLI=y | ||||
| BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y | ||||
| BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE=y | ||||
| BR2_PACKAGE_LINUX_FIRMWARE=y | ||||
| BR2_PACKAGE_LINUX_FIRMWARE_MEDIATEK_MT7601U=y | ||||
| BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC=y | ||||
| BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_MT7601U=y | ||||
| BR2_PACKAGE_LINUX_FIRMWARE_OPENIPC_RTL8188EU=y | ||||
| # BR2_PACKAGE_RTL8188EU is not set | ||||
| # BR2_PACKAGE_RTL8188FU_OPENIPC is not set | ||||
| 
 | ||||
|  |  | |||
|  | @ -10,7 +10,7 @@ iface eth0 inet dhcp | |||
| 
 | ||||
| manual eth0:1 | ||||
| iface eth0:1 inet static | ||||
|     address $(fw_printenv -n ipaddr) | ||||
|     address $(fw_printenv -n ipaddr || echo 192.168.1.10) | ||||
|     netmask 255.255.255.0 | ||||
| 
 | ||||
| manual wlan0 | ||||
|  |  | |||
|  | @ -81,10 +81,13 @@ case "$1" in | |||
| 
 | ||||
| 		# drop info from this interface | ||||
| 		# resolv.conf may be a symlink to /tmp/, so take care | ||||
| 		TMPFILE=$(mktemp) | ||||
| 		grep -vE "# $interface\$" $RESOLV_CONF > $TMPFILE | ||||
| 		cat $TMPFILE > $RESOLV_CONF | ||||
| 		rm -f $TMPFILE | ||||
| 		#TMPFILE=$(mktemp) | ||||
| 		#grep -vE "# $interface\$" $RESOLV_CONF > $TMPFILE | ||||
| 		#cat $TMPFILE > $RESOLV_CONF | ||||
| 		#rm -f $TMPFILE | ||||
| 
 | ||||
| 		# Clearing the file because it is in RAM | ||||
| 		> $RESOLV_CONF | ||||
| 
 | ||||
| 		# prefer rfc3397 domain search list (option 119) if available | ||||
| 		if [ -n "$search" ]; then | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue