diff options
author | Mike Baker <mbm@openwrt.org> | 2004-07-11 23:01:01 +0000 |
---|---|---|
committer | Mike Baker <mbm@openwrt.org> | 2004-07-11 23:01:01 +0000 |
commit | a33ddbdadc55fa390ae20e36c8d0f00deadfa9ab (patch) | |
tree | 7abf76e8f9a6e14d10051051ddf06c635dad234e | |
parent | 8d8f855860b3f4649e75468b29b14ec37b5c717d (diff) | |
download | mtk-20170518-a33ddbdadc55fa390ae20e36c8d0f00deadfa9ab.zip mtk-20170518-a33ddbdadc55fa390ae20e36c8d0f00deadfa9ab.tar.gz mtk-20170518-a33ddbdadc55fa390ae20e36c8d0f00deadfa9ab.tar.bz2 |
handle missing wan_ifname
SVN-Revision: 87
-rw-r--r-- | root/etc/nvram.overrides | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/root/etc/nvram.overrides b/root/etc/nvram.overrides index 45097fc..e155df1 100644 --- a/root/etc/nvram.overrides +++ b/root/etc/nvram.overrides @@ -44,3 +44,8 @@ lan_proto="static" lan_ifname="br0" lan_ifnames="vlan0 vlan2 eth1 eth2 eth3" } + +[ -z "$(nvram_get wan_ifname)" ] && { + wan_ifname="vlan1" + wan_proto="dhcp" +} |