fix typo in 05_set_ether_mac_rdc preinit script (#11166)
authorFlorian Fainelli <florian@openwrt.org>
Thu, 4 Oct 2012 12:36:50 +0000 (12:36 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 4 Oct 2012 12:36:50 +0000 (12:36 +0000)
SVN-Revision: 33618

target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc

index 1a9ad2f2336b4dd843329927867fcd390e134401..4640e008faf1535e70ddeb74686ff8f2c473860f 100644 (file)
@@ -19,7 +19,7 @@ set_ether_mac() {
                mac0=$(hexdump -n 6 -e '6/1 ":%X"' -s 24583 $config | cut -c2-)
                [ "$mac0" = "FF:FF:FF:FF:FF:FF" -o "$mac0" = "0:0:0:0:0:0" ] && unset mac0
                mac1=$(hexdump -n 6 -e '6/1 ":%X"' -s 24589 $config | cut -c2-)
-               [ "$mac1" = "FF:FF:FF:FF:FF:FF" -o "$mac0" = "0:0:0:0:0:0" ] && unset mac1
+               [ "$mac1" = "FF:FF:FF:FF:FF:FF" -o "$mac1" = "0:0:0:0:0:0" ] && unset mac1
        fi
        if [ -n "$mac0" ]; then
                logger -t kernel -p user.info "r6040: Setting MAC for eth0 to $mac0"