diff options
Diffstat (limited to 'target/linux/ar71xx/base-files/etc/uci-defaults')
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/00_inittab-console-fixup (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup) | 0 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/01_leds (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/leds) | 62 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/02_network (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/network) | 130 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration | 106 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/vlan-migration) | 0 | ||||
-rwxr-xr-x | target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl (renamed from target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl) | 0 | ||||
-rw-r--r-- | target/linux/ar71xx/base-files/etc/uci-defaults/caldata-migration | 66 |
7 files changed, 262 insertions, 102 deletions
diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup b/target/linux/ar71xx/base-files/etc/uci-defaults/00_inittab-console-fixup index 4098b37a7..4098b37a7 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/inittab-console-fixup +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/00_inittab-console-fixup diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 5e2e9acfb..6e3e37092 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -32,11 +32,17 @@ ap113) ucidef_set_led_usbdev "usb" "USB" "ap113:green:usb" "1-1" ;; +cap4200ag) + ucidef_set_led_default "lan_green" "LAN_GREEN" "senao:green:lan" "1" + ucidef_set_led_wlan "wlan_amber" "WLAN_AMBER" "senao:amber:wlan" "phy0tpt" + ucidef_set_led_wlan "wlan_green" "WLAN_GREEN" "senao:green:wlan" "phy1tpt" + ;; + db120) ucidef_set_led_usbdev "usb" "USB" "db120:green:usb" "1-1" ;; -rb750) +rb-750) ucidef_set_led_default "act" "act" "rb750:green:act" "1" ucidef_set_led_netdev "port1" "port1" "rb750:green:port1" "eth1" ucidef_set_led_switch "port2" "port2" "rb750:green:port2" "switch0" "0x10" @@ -54,7 +60,8 @@ dir-615-e4) ucidef_set_led_switch "lan4" "LAN4" "d-link:green:lan4" "switch0" "0x10" ;; -dir-825-b1) +dir-825-b1 | \ +dir-825-c1) ucidef_set_led_usbdev "usb" "USB" "d-link:blue:usb" "1-1" ;; @@ -65,6 +72,10 @@ hornet-ub) ucidef_set_led_usbdev "usb" "USB" "alfa:blue:usb" "1-1" ;; +mr600) + ucidef_set_led_wlan "wlan58" "WLAN58" "mr600:green:wlan58" "phy0tpt" + ;; + mzk-w04u) ucidef_set_led_usbdev "usb" "USB" "planex:green:usb" "1-1" ;; @@ -78,6 +89,7 @@ nbg460n_550n_550nh) ;; om2p | \ +om2p-hs | \ om2p-lc) ucidef_set_led_netdev "port1" "port1" "om2p:blue:wan" "eth0" ucidef_set_led_netdev "port2" "port2" "om2p:blue:lan" "eth1" @@ -93,7 +105,8 @@ tew-712br) ;; tl-mr11u | \ -tl-mr3020) +tl-mr3020 | \ +tl-mr3040) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" @@ -104,6 +117,26 @@ tl-mr3420 ) ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" ;; +tl-mr3220-v2) + ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth1" + ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" + ;; + +tl-mr3420-v2) + ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0" + ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + ucidef_set_led_usbdev "usb" "USB" "tp-link:green:3g" "1-1" + ;; + tl-wa901nd) ucidef_set_led_netdev "lan" "LAN" "tp-link:green:lan" "eth0" ;; @@ -112,6 +145,11 @@ tl-wa901nd-v2) ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" ;; +tl-wdr3500) + ucidef_set_led_usbdev "usb" "USB" "tp-link:green:usb" "1-1" + ucidef_set_led_wlan "wlan2g" "WLAN2G" "tp-link:green:wlan2g" "phy0tpt" + ;; + tl-wdr4300) ucidef_set_led_usbdev "usb1" "USB1" "tp-link:green:usb1" "1-1.1" ucidef_set_led_usbdev "usb2" "USB2" "tp-link:green:usb2" "1-1.2" @@ -135,6 +173,15 @@ tl-wr741nd-v4) ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" ;; +tl-wr841n-v8) + ucidef_set_led_netdev "wan" "WAN" "tp-link:green:wan" "eth0" + ucidef_set_led_switch "lan1" "LAN1" "tp-link:green:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "tp-link:green:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "tp-link:green:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "tp-link:green:lan4" "switch0" "0x02" + ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" + ;; + tl-wr941nd | \ tl-wr1041n-v2) ucidef_set_led_wlan "wlan" "WLAN" "tp-link:green:wlan" "phy0tpt" @@ -153,11 +200,20 @@ wrt160nl) ucidef_set_led_wlan "wlan" "WLAN" "wrt160nl:blue:wlan" "phy0tpt" ;; +wndap360) + ucidef_set_led_power "power" "POWER GREEN" "wndap360:green:power" "1" + ;; + wndr3700) ucidef_set_led_default "wan" "WAN LED (green)" "wndr3700:green:wan" "0" ucidef_set_led_usbdev "usb" "USB" "wndr3700:green:usb" "1-1" ;; +wndr4300) + ucidef_set_led_netdev "wan" "WAN (green)" "netgear:green:wan" "eth0.2" + ucidef_set_led_usbdev "usb" "USB" "netgear:green:usb" "1-1" + ;; + whr-g301n |\ whr-hp-g300n |\ whr-hp-gn) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/network b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network index f749cc668..a9a3ff2e9 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/network +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/02_network @@ -17,34 +17,55 @@ board=$(ar71xx_board_name) case "$board" in all0315n |\ all0258n |\ -ja76pf2) +ja76pf2|\ +ubnt-unifi-outdoor) ucidef_set_interface_lan "eth0 eth1" ;; +ap132) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5" + ucidef_add_switch_vlan "switch0" "2" "0t 1" + ;; + +ap136-010) + ucidef_set_interfaces_lan_wan "eth0" "eth1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ucidef_add_switch_vlan "switch0" "2" "5 6" + ;; + +ap136-020 |\ +ap135-020) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ucidef_add_switch_vlan "switch0" "2" "5 6" + ;; + db120 |\ rb-2011l | \ rb-2011uas-2hnd) ucidef_set_interfaces_lan_wan "eth0.1 eth1" "eth0.2" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5" - ucidef_add_switch_vlan "eth0" "2" "0t 1" - ucidef_add_switch "eth1" "1" "1" - ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 4 5" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5" + ucidef_add_switch_vlan "switch0" "2" "0t 1" + ucidef_add_switch "switch1" "1" "1" + ucidef_add_switch_vlan "switch1" "1" "0 1 2 3 4 5" ;; dir-825-b1|\ -dir-825-b1-openwrt|\ -dir-825-b1-tostock|\ tew-673gru) ucidef_set_interfaces_lan_wan "eth0.1" "eth1" - ucidef_add_switch "rtl8366s" "1" "1" - ucidef_add_switch_vlan "rtl8366s" "1" "0 1 2 3 5t" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" ;; nbg460n_550n_550nh) ucidef_set_interfaces_lan_wan "eth0" "eth1" - ucidef_add_switch "rtl8366s" "1" "1" - ucidef_add_switch_vlan "rtl8366s" "0" "0 1 2 3 5" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "0" "0 1 2 3 5" ;; rb-433 |\ @@ -54,10 +75,16 @@ rb-433u) ucidef_add_switch_vlan "switch0" "1" "1 2 5" ;; +rb-435g) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2" + ;; + rb-450) ucidef_set_interfaces_lan_wan "eth1" "eth0" - ucidef_add_switch "eth1" "1" "1" - ucidef_add_switch_vlan "eth1" "1" "0 1 2 3 5" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5" ;; rb-450g |\ @@ -70,6 +97,7 @@ routerstation-pro) ap136 |\ rb-750gl |\ rb-751g |\ +rb-951g-2hnd |\ wzr-hp-g450h) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" ucidef_add_switch "switch0" "1" "1" @@ -90,24 +118,24 @@ wzr-hp-g300nh2 |\ pb92 |\ ap113) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0t 1 3 4 5" - ucidef_add_switch_vlan "eth0" "2" "0t 2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 1 3 4 5" + ucidef_add_switch_vlan "switch0" "2" "0t 2" ;; tl-wdr4300|\ tl-wr1041n-v2) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5" - ucidef_add_switch_vlan "eth0" "2" "0t 1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5" + ucidef_add_switch_vlan "switch0" "2" "0t 1" ;; tl-wr1043nd) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "rtl8366rb" "1" "1" - ucidef_add_switch_vlan "rtl8366rb" "1" "1 2 3 4 5t" - ucidef_add_switch_vlan "rtl8366rb" "2" "0 5t" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" + ucidef_add_switch_vlan "switch0" "2" "0 5t" ;; tl-wr2543n) @@ -123,10 +151,24 @@ tl-wr941nd) ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan" ;; +tl-mr3420-v2 |\ +tl-wr841n-v8 |\ +wnr2000-v3) + ucidef_set_interfaces_lan_wan "eth1" "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" + ;; + +uap-pro) + ucidef_set_interface_lan "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2" + ;; + wrt160nl) ucidef_set_interfaces_lan_wan "eth0" "eth1" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4 5" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4 5" ;; wzr-hp-g300nh) @@ -135,17 +177,30 @@ wzr-hp-g300nh) ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" ;; +dir-825-c1 |\ +dir-835-a1 |\ +wndr4300) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4" + ucidef_add_switch_vlan "switch0" "2" "0t 5" + ;; + all0305 |\ aw-nr580 |\ bullet-m |\ +cap4200ag |\ eap7660d |\ -ew-dorin |\ +mr600 |\ +mr600v2 |\ rb-411 |\ tl-mr11u |\ tl-mr3020 |\ +tl-mr3040 |\ tl-wa901nd |\ tl-wa901nd-v2 |\ tl-wr703n |\ +wndap360 |\ wp543) ucidef_set_interface_lan "eth0" ;; @@ -157,6 +212,7 @@ jwap003 |\ pb42 |\ pb44 |\ routerstation|\ +tl-wr720n-v3|\ wpe72) ucidef_set_interfaces_lan_wan "eth1" "eth0" ;; @@ -174,7 +230,9 @@ rb-751 |\ tew-632brp |\ tew-712br |\ tl-mr3220 |\ +tl-mr3220-v2 |\ tl-mr3420 |\ +tl-wdr3500 |\ tl-wr741nd |\ tl-wr741nd-v4 |\ tl-wr841n-v7 |\ @@ -183,21 +241,27 @@ whr-hp-g300n |\ whr-hp-gn |\ wzr-hp-ag300h) ucidef_set_interfaces_lan_wan "eth0" "eth1" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0 1 2 3 4" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4" ;; wzr-hp-g450h) ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0t 2 3 4 5" - ucidef_add_switch_vlan "eth0" "2" "0t 1" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0t 2 3 4 5" + ucidef_add_switch_vlan "switch0" "2" "0t 1" + ;; + +ew-dorin) + ucidef_set_interface_lan "eth0" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3" ;; ew-dorin-router) ucidef_set_interfaces_lan_wan "eth0" "eth1" - ucidef_add_switch "eth0" "1" "1" - ucidef_add_switch_vlan "eth0" "1" "0 2 3" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "0 2 3" ;; *) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration new file mode 100755 index 000000000..718a924f1 --- /dev/null +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-switchX-migration @@ -0,0 +1,106 @@ +#!/bin/sh +# +# Copyright (C) 2013 OpenWrt.org +# + +SWITCH_NAME_CHANGED= + +do_change_switch_name() { + local config="$1" + local option=$2 + local oldname=$3 + local newname=$4 + local val + + config_get val "$config" $option + [ "$val" != "$oldname" ] && return 0 + + uci_set network "$config" $option $newname + SWITCH_NAME_CHANGED=1 + + return 0 +} + +migrate_switch_name() { + local oldname=$1 + local newname=$2 + + . /lib/functions.sh + + config_load network + + logger -t migrate-switchX "Updating switch names in network configuration" + + config_foreach do_change_switch_name switch name $oldname $newname + config_foreach do_change_switch_name switch_vlan device $oldname $newname + + [ "$SWITCH_NAME_CHANGED" == "1" ] && { + logger -t migrate-switchX "Switch names updated, saving network configuration" + uci commit network + } +} + +. /lib/ar71xx.sh + +board=$(ar71xx_board_name) + +case "$board" in +dir-825-c1|\ +wzr-hp-g300nh2|\ +pb92|\ +ap113|\ +tl-wdr4300|\ +tl-wr1041n-v2|\ +wrt160nl|\ +ap121|\ +ap121-mini|\ +ap96|\ +airrouter|\ +dir-600-a1|\ +dir-615-c1|\ +dir-615-e4|\ +ja76pf|\ +rb-750|\ +rb-751|\ +tew-632brp|\ +tew-712br|\ +tl-mr3220|\ +tl-mr3220-v2 |\ +tl-mr3420|\ +tl-wr741nd|\ +tl-wr741nd-v4|\ +tl-wr841n-v7|\ +whr-g301n|\ +whr-hp-g300n|\ +whr-hp-gn|\ +wzr-hp-ag300h|\ +wzr-hp-g450h|\ +ew-dorin|\ +ew-dorin-router) + migrate_switch_name "eth0" "switch0" + ;; + +rb-450) + migrate_switch_name "eth1" "switch0" + ;; + +db120 |\ +rb-2011l | \ +rb-2011uas-2hnd) + migrate_switch_name "eth0" "switch0" + migrate_switch_name "eth1" "switch1" + ;; + +dir-825-b1|\ +tew-673gru|\ +nbg460n_550n_550nh) + migrate_switch_name "rtl8366s" "switch0" + ;; + +tl-wr1043nd) + migrate_switch_name "rtl8366rb" "switch0" + ;; + +esac + +exit 0 diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/vlan-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration index bea9493c8..bea9493c8 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/vlan-migration +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/03_network-vlan-migration diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl b/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl index dce28dde9..dce28dde9 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/wrt160nl +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/09_wrt160nl diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/caldata-migration b/target/linux/ar71xx/base-files/etc/uci-defaults/caldata-migration deleted file mode 100644 index 750ff405d..000000000 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/caldata-migration +++ /dev/null @@ -1,66 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2011 OpenWrt.org -# - -. /lib/functions/uci-defaults.sh -. /lib/ar71xx.sh - -board=$(ar71xx_board_name) - -findmtd() { - local partname="$1" - grep "\"$partname\"" /proc/mtd | awk -F: '{ print $1 }' -} - -getcalmac() { - local partname="$1" - local offset="$2" - - hexdump -e '17/1 "%c"' -s $offset -n 17 /dev/$(findmtd $partname) | tr -d : | tr 'A-Z' 'a-z' -} - -calcmacX() { - local mac="$1" - local X="$2" - - local oui="$(expr substr "$mac" 1 6)" - local end="$(expr substr "$mac" 7 12)" - - echo -n $oui - expr substr "$(printf "%6lx" "$(($(printf "%lu" 0x${end}) + $X))")" 1 6 -} - -getifmac() { - local ifname="$1" - - local ifmac - - ifmac="$(ifconfig "$ifname" | grep HWaddr)" - ifmac="${ifmac#*HWaddr }" - ifmac="${ifmac%% *}" - - echo "$ifmac" | tr -d : | tr 'A-Z' 'a-z' -} - -case "$board" in -dir-825-b1) - mac1="$(getcalmac caldata 65440)" - mac1="$(calcmacX "$mac1" 2)" - mac2="$(calcmacX "$mac1" 1)" - - if grep -q '"owrt_caldata"' /proc/mtd && [ "$mac1" = "$(getifmac eth0)" ] && [ "$mac2" = "$(getifmac eth1)" ]; then - dd if=/dev/$(findmtd caldata) of=/dev/$(findmtd owrt_caldata) bs=65536 count=1 - fi - ;; -dir-825-b1-tostock) - mac1="$(getcalmac owrt_caldata 65440)" - mac1="$(calcmacX "$mac1" 2)" - mac2="$(calcmacX "$mac1" 1)" - if grep -q '"owrt_caldata"' /proc/mtd && [ "$mac1" = "$(getifmac eth0)" ] && [ "$mac2" = "$(getifmac eth1)" ]; then - dd if=/dev/$(findmtd owrt_caldata) of=/dev/$(findmtd caldata) bs=65536 count=1 - fi - ;; -esac - -return 0 |