aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/base-files/etc
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2013-10-14 19:46:40 +0000
committerLuka Perkov <luka@openwrt.org>2013-10-14 19:46:40 +0000
commit73ef94f400a6601a61ca50ac62f80f4e6317ae73 (patch)
tree2c4ab6a7ff8198fe6c761b0c19df9641ab84b99e /target/linux/kirkwood/base-files/etc
parentb1fe676572d28ab9ce337c0888ed139da0cfc411 (diff)
downloadmaster-187ad058-73ef94f400a6601a61ca50ac62f80f4e6317ae73.tar.gz
master-187ad058-73ef94f400a6601a61ca50ac62f80f4e6317ae73.tar.bz2
master-187ad058-73ef94f400a6601a61ca50ac62f80f4e6317ae73.zip
kirkwood: upgrade to 3.10.15
Signed-off-by: Luka Perkov <luka@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38402 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/kirkwood/base-files/etc')
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/01_leds8
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/02_network16
2 files changed, 8 insertions, 16 deletions
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
index 18ac43c86a..7e2018853a 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
@@ -1,19 +1,15 @@
#!/bin/sh
#
-# Copyright (C) 2012 OpenWrt.org
+# Copyright (C) 2012-2013 OpenWrt.org
#
. /lib/functions/uci-defaults.sh
-. /lib/kirkwood.sh
-hardware=$(kirkwood_hardware_name)
-
-case "$hardware" in
+case "`cat /proc/device-tree/model`" in
"Seagate FreeAgent DockStar")
ucidef_set_led_netdev "eth0" "dockstar:orange:misc" "eth0"
ucidef_set_led_default "health" "dockstar:green:health" "1"
;;
-
*)
;;
esac
diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
index 8c04fdbf28..42724ef706 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@ -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"
;;