aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-03-30 09:16:43 +0000
committerJohn Crispin <blogic@openwrt.org>2014-03-30 09:16:43 +0000
commit2f8977ef9de20409fa07120159a6d660889f4824 (patch)
tree6a10ab5d4bb9cd1f4beac75ca400d0484cb1ca95 /target/linux/lantiq/base-files
parentc2d755eb76cce43b41fc26d20f08ac66a24eb83c (diff)
downloadupstream-2f8977ef9de20409fa07120159a6d660889f4824.tar.gz
upstream-2f8977ef9de20409fa07120159a6d660889f4824.tar.bz2
upstream-2f8977ef9de20409fa07120159a6d660889f4824.zip
lantiq: add esi
http://patchwork.openwrt.org/patch/3703/ Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40326 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/lantiq/base-files')
-rwxr-xr-xtarget/linux/lantiq/base-files/etc/init.d/esi7
1 files changed, 7 insertions, 0 deletions
diff --git a/target/linux/lantiq/base-files/etc/init.d/esi b/target/linux/lantiq/base-files/etc/init.d/esi
new file mode 100755
index 0000000000..5635b5361b
--- /dev/null
+++ b/target/linux/lantiq/base-files/etc/init.d/esi
@@ -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 || :
+}