From eb405a8276ad6e98368a2802f6b6bb2f6c54a953 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 3 Sep 2006 05:40:21 +0000 Subject: [PATCH] add a default for lan_proto (#732) SVN-Revision: 4738 --- openwrt/package/base-files/default/etc/init.d/S05nvram | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openwrt/package/base-files/default/etc/init.d/S05nvram b/openwrt/package/base-files/default/etc/init.d/S05nvram index 67ed1f27d6..3e0439610a 100755 --- a/openwrt/package/base-files/default/etc/init.d/S05nvram +++ b/openwrt/package/base-files/default/etc/init.d/S05nvram @@ -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" \ -- 2.30.2