2
0
forked from Ivasoft/openwrt

kirkwood: upgrade to 3.10.15

Signed-off-by: Luka Perkov <luka@openwrt.org>

SVN-Revision: 38402
This commit is contained in:
Luka Perkov
2013-10-14 19:46:40 +00:00
parent 4da854bcd0
commit 73246d2f64
7 changed files with 128 additions and 56 deletions

View File

@@ -1,10 +1,12 @@
#!/bin/sh
#
# Copyright (C) 2012 OpenWrt.org
# Copyright (C) 2012-2013 OpenWrt.org
#
[ -e /etc/config/network ] && exit 0
touch /etc/config/network
set_lan_dhcp() {
local ifname=$1
uci batch <<EOF
@@ -19,23 +21,17 @@ EOF
}
. /lib/functions/uci-defaults.sh
. /lib/kirkwood.sh
touch /etc/config/network
ucidef_set_interface_loopback
hardware=$(kirkwood_hardware_name)
case "$hardware" in
"Seagate FreeAgent DockStar")
case "`cat /proc/device-tree/model`" in
"Seagate FreeAgent Dockstar")
set_lan_dhcp "eth0"
;;
"RaidSonic ICY BOX IB-NAS6210")
"RaidSonic ICY BOX IB-NAS62x0 (Rev B)")
set_lan_dhcp "eth0"
;;
*)
ucidef_set_interface_lan "eth0"
;;