add a default for lan_proto (#732)
authorFelix Fietkau <nbd@openwrt.org>
Sun, 3 Sep 2006 05:40:21 +0000 (05:40 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 3 Sep 2006 05:40:21 +0000 (05:40 +0000)
SVN-Revision: 4738

openwrt/package/base-files/default/etc/init.d/S05nvram

index 67ed1f27d60137ec230d05bc854a8064eddac0b4..3e0439610affd74a885a97c60ec479204e748bba 100755 (executable)
@@ -68,7 +68,8 @@ esac
 [ "$COMMIT" = "1" ] && nvram commit
 
 # linksys bug; use 'dhcpclient' or similar as lan_proto if you want to use dhcp
-[ "$(nvram get lan_proto)" = "dhcp" ] && nvram set lan_proto="static"
+[ "$(nvram get lan_proto)" = "dhcp" ] && nvram unset lan_proto
+nvram_default lan_proto static
 
 # hacks for wrt54g 1.x hardware
 [  "$boardnum"  = "42" \