This patch sets the ESI properly for the Lantiq ATM driver so that
things like DHCP over RFC1483 will work correctly.

Signed-off-by: Daniel Gimpelevich <dan...@gimpelevich.san-francisco.ca.us>
Index: target/linux/lantiq/ase/target.mk
===================================================================
--- a/target/linux/lantiq/ase/target.mk (revision 36739)
+++ b/target/linux/lantiq/ase/target.mk (working copy)
@@ -3,7 +3,7 @@
 BOARDNAME:=Amazon-SE
 FEATURES:=squashfs jffs2 atm
 
-DEFAULT_PACKAGES+=kmod-pppoa ppp-mod-pppoa linux-atm atm-tools br2684ctl 
kmod-ltq-dsl-ase ltq-dsl-app
+DEFAULT_PACKAGES+=kmod-pppoa ppp-mod-pppoa linux-atm atm-esi atm-tools 
br2684ctl kmod-ltq-dsl-ase ltq-dsl-app
 
 define Target/Description
        Lantiq ASE
Index: target/linux/lantiq/xway/target.mk
===================================================================
--- a/target/linux/lantiq/xway/target.mk        (revision 36739)
+++ b/target/linux/lantiq/xway/target.mk        (working copy)
@@ -3,7 +3,7 @@
 BOARDNAME:=XWAY
 FEATURES:=squashfs jffs2 atm
 
-DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug
+DEFAULT_PACKAGES+=kmod-leds-gpio kmod-gpio-button-hotplug linux-atm atm-esi
 
 define Target/Description
        Lantiq XWAY
Index: target/linux/lantiq/base-files/etc/init.d/esi
===================================================================
--- a/target/linux/lantiq/base-files/etc/init.d/esi     (revision 0)
+++ b/target/linux/lantiq/base-files/etc/init.d/esi     (revision 0)
@@ -0,0 +1,7 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2013 OpenWrt.org
+
+START=19
+start() {
+       esi $(printf '%X' $((1+0x$(tr -d : </sys/class/net/eth0/address)))) 
2>/dev/null || :
+}

Property changes on: target/linux/lantiq/base-files/etc/init.d/esi
___________________________________________________________________
Added: svn:executable
   + *



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to