X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/a9929695c6ad0779eaa8cb3d68d37760981d55b7..35da5f1d47720e17fea5f66aff5ebd5db915b3ce:/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc diff --git a/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc b/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc index 43823c48e..b672acaa3 100644 --- a/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc +++ b/target/linux/rdc/base-files/lib/preinit/05_set_ether_mac_rdc @@ -1,14 +1,18 @@ #!/bin/sh # Copyright (C) 2009 OpenWrt.org -. /etc/boot.sh +. /lib/functions/boot.sh r6040_module() { + insmod libphy + insmod swconfig + insmod ip175c + sleep 1 insmod r6040 } set_ether_mac() { - kernel=$(grep magic /proc/mtd | awk -F: '{print $1}') + kernel=$(grep firmware /proc/mtd | awk -F: '{print $1}') [ -n $kernel ] && hdr=$(dd if=/dev/$kernel count=4 bs=1 2> /dev/null) [ "$hdr" = "CSYS" ] && config=$(find_mtd_part config) if [ -n "$config" ]; then