Skip to content
Snippets Groups Projects
Commit 5e0df958 authored by Florian Fainelli's avatar Florian Fainelli
Browse files

fix typo in 05_set_ether_mac_rdc preinit script (#11166)

SVN-Revision: 33618
parent e5ca54ae
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ set_ether_mac() { ...@@ -19,7 +19,7 @@ set_ether_mac() {
mac0=$(hexdump -n 6 -e '6/1 ":%X"' -s 24583 $config | cut -c2-) 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 [ "$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=$(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 fi
if [ -n "$mac0" ]; then if [ -n "$mac0" ]; then
logger -t kernel -p user.info "r6040: Setting MAC for eth0 to $mac0" logger -t kernel -p user.info "r6040: Setting MAC for eth0 to $mac0"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment