On 3/12/11 12:19 PM, Philip Prindeville wrote:
[...]
I've updated my patch, but I still need to have udhcp wait before br2684ctl
exits before starting...
-Philip
And for those lacking telepathy, here it is.
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,13 @@
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}
+
+ sleep 1
+ ifconfig $nas down hw ether "$hwaddr" up
+ fi
}
start() {
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel