diff options
Diffstat (limited to 'files/etc/board.d/99-default_network')
-rwxr-xr-x | files/etc/board.d/99-default_network | 17 |
1 files changed, 17 insertions, 0 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 |