Some ISP's will only allow you to use their equipment, and pre-register its MAC 
address when provisioning your circuit.

If you can get the public side MAC address from the box, provision this as the 
'hwaddr' option in the atm-bridge config and you can spoof their equipment.

Only problem... the hw address doesn't get set when I reboot with this patch, 
but if I kill br2684ctl on a running system and rerun the init script, then it 
takes... not sure why or how to go about debugging an init script at boot time.

Looked on the wiki and there wasn't much on the topic.

Index: package/linux-atm/files/br2684ctl
===================================================================
--- package/linux-atm/files/br2684ctl   (revision 25881)
+++ package/linux-atm/files/br2684ctl   (working copy)
@@ -32,6 +32,9 @@
                *) payload=1;;
        esac
 
+       local hwaddr
+       config_get hwaddr "$cfg" hwaddr
+
        local qos
        config_get qos "$cfg" qos
 
@@ -41,6 +44,11 @@
        start-stop-daemon -S -b -x /usr/sbin/br2684ctl -m -p "$pid" -- \
                -c "$unit" -e "$encaps" -p "$payload" \
                -a "$circuit" ${qos:+-q "$qos"}
+
+       if [ "$payload" = 1 -a -n "$hwaddr" ]; then
+               local nas=nas${unit}
+               ifconfig $nas hw ether "$hwaddr"
+       fi
 }
 
 start() {
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to