diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-07-31 11:37:06 +0000 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2018-07-31 11:37:06 +0000 |
commit | 0c5ad68128d49fec8b8770c343f30360c91c1b81 (patch) | |
tree | 724a4d7e46f0e58b830b390ecd146aac7362b97f | |
parent | b8817b666eb04ac7bfef15ccdec92cfa7b757061 (diff) |
Use default network configuration
Fixes problem with router advertisment previously
enabled by default on the lan interface.
-rwxr-xr-x | files/etc/board.d/99-default_network | 17 | ||||
-rw-r--r-- | files/etc/config/network | 10 |
2 files changed, 17 insertions, 10 deletions
diff --git a/files/etc/board.d/99-default_network b/files/etc/board.d/99-default_network new file mode 100755 index 0000000..7a0b054 --- /dev/null +++ b/files/etc/board.d/99-default_network @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Copyright (C) 2013-2015 OpenWrt.org +# + +. /lib/functions/uci-defaults.sh + +board_config_update + +json_is_a network object && exit 0 + +ucidef_set_interface_lan 'eth0' dhcp +[ -d /sys/class/net/eth1 ] && ucidef_set_interface_wan 'eth1' + +board_config_flush + +exit 0 diff --git a/files/etc/config/network b/files/etc/config/network deleted file mode 100644 index 6d5e787..0000000 --- a/files/etc/config/network +++ /dev/null @@ -1,10 +0,0 @@ - -config interface 'loopback' - option ifname 'lo' - option proto 'static' - option ipaddr '127.0.0.1' - option netmask '255.0.0.0' - -config interface 'lan' - option ifname 'eth0' - option proto 'dhcp' |