blob: bda8d0c75c822417e4af9d4f6d4ff42bb53733c1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
#
# Copyright (C) 2014 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
. /lib/functions/uci-defaults.sh
. /lib/functions/octeon.sh
touch /etc/config/network
board=$(octeon_board_name)
case "$board" in
erlite)
ucidef_set_interface_loopback
ucidef_set_interface_lan 'eth0'
ucidef_set_interface_wan 'eth1'
;;
*)
ucidef_set_interface_loopback
ucidef_set_interface_wan 'eth1'
ucidef_set_interface_lan 'eth0'
;;
esac
uci commit network
exit 0
|