mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ramips: add user space support for the DIR-645
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33844 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -30,6 +30,11 @@ preinit_set_mac_address() {
|
||||
mac=$(ramips_get_mac_binary devdata 16388)
|
||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||
;;
|
||||
dir-645)
|
||||
mac=$(ramips_get_mac_nvram nvram lanmac)
|
||||
mac=$(maccalc or "$mac" "02:00:00:00:00:00")
|
||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||
;;
|
||||
dap-1350)
|
||||
mac=$(ramips_get_mac_binary devdata 46)
|
||||
ifconfig eth0 hw ether $mac 2>/dev/null
|
||||
|
||||
@@ -92,6 +92,9 @@ ramips_board_name() {
|
||||
*"DIR-615 H1")
|
||||
name="dir-615-h1"
|
||||
;;
|
||||
*"DIR-645")
|
||||
name="dir-645"
|
||||
;;
|
||||
*"DAP-1350")
|
||||
name="dap-1350"
|
||||
;;
|
||||
|
||||
@@ -57,6 +57,13 @@ platform_check_image() {
|
||||
}
|
||||
return 0
|
||||
;;
|
||||
dir-645)
|
||||
[ "$magic" != "5ea3a417" ] && {
|
||||
echo "Invalid image type."
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
;;
|
||||
esac
|
||||
|
||||
echo "Sysupgrade is not yet supported on $board."
|
||||
|
||||
Reference in New Issue
Block a user