projects
/
librecmc
/
librecmc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kirkwood: base-files: use /lib/functions/kirkwood.sh
[librecmc/librecmc.git]
/
target
/
linux
/
kirkwood
/
base-files
/
etc
/
uci-defaults
/
02_network
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 0c55cbfd282878f5e523c11e6041e171b629d79c..949e4d71a700b2cf2abe351ba73e803aac1234b4 100644
(file)
--- a/
target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/
target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@
-21,23
+21,26
@@
EOF
}
. /lib/functions/uci-defaults.sh
}
. /lib/functions/uci-defaults.sh
+. /lib/functions/kirkwood.sh
+
+board=$(kirkwood_board_name)
ucidef_set_interface_loopback
ucidef_set_interface_loopback
-case "
`cat /proc/device-tree/model`
" in
-"
Seagate FreeAgent D
ockstar")
+case "
$board
" in
+"
d
ockstar")
set_lan_dhcp "eth0"
;;
set_lan_dhcp "eth0"
;;
-"
Iomega I
connect")
+"
i
connect")
set_lan_dhcp "eth0"
;;
set_lan_dhcp "eth0"
;;
-"
RaidSonic ICY BOX IB-NAS62x0 (Rev B)
")
+"
ib62x0
")
set_lan_dhcp "eth0"
;;
set_lan_dhcp "eth0"
;;
-"
Cloud Engines Pogoplug E
02")
+"
pogo_e
02")
set_lan_dhcp "eth0"
;;
set_lan_dhcp "eth0"
;;
-"
Linksys EA
4500")
+"
ea
4500")
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
*)