mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41274 3c298f89-4303-0410-b956-a3cf2f4a3e73
32 lines
466 B
Bash
32 lines
466 B
Bash
#!/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
|