projects
/
openwrt
/
svn-archive
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b20a998
)
add a default for lan_proto (#732)
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 3 Sep 2006 05:40:21 +0000
(
05:40
+0000)
committer
Felix 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
patch
|
blob
|
history
diff --git
a/openwrt/package/base-files/default/etc/init.d/S05nvram
b/openwrt/package/base-files/default/etc/init.d/S05nvram
index 67ed1f27d60137ec230d05bc854a8064eddac0b4..3e0439610affd74a885a97c60ec479204e748bba 100755
(executable)
--- 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" \