From c306813c26998eb975de22214b5c9a2f0c930b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Ren=C3=A9=20Sch=C3=A4dler?= Date: Wed, 4 Sep 2013 11:34:26 +0200 Subject: [PATCH] add execution of environment variables script to rc.local --- bsp/default/root_file_system/etc/rc.local | 3 +++ bsp/dir300/root_file_system/etc/rc.local | 3 +++ bsp/fonera/root_file_system/etc/rc.local | 2 ++ bsp/wr1043nd/root_file_system/etc/rc.local | 2 ++ bsp/wr741nd2/root_file_system/etc/rc.local | 2 ++ bsp/wr741nd4/root_file_system/etc/rc.local | 2 ++ bsp/wr841n8/root_file_system/etc/rc.local | 2 ++ bsp/wr841nd7/root_file_system/etc/rc.local | 2 ++ 8 files changed, 18 insertions(+) diff --git a/bsp/default/root_file_system/etc/rc.local b/bsp/default/root_file_system/etc/rc.local index 82362bb..c523c08 100755 --- a/bsp/default/root_file_system/etc/rc.local +++ b/bsp/default/root_file_system/etc/rc.local @@ -1,6 +1,9 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment + # todo: all devices or only dir300 ? if uci get network.mesh.macaddr then diff --git a/bsp/dir300/root_file_system/etc/rc.local b/bsp/dir300/root_file_system/etc/rc.local index 28b4e4c..0bb6ba3 100755 --- a/bsp/dir300/root_file_system/etc/rc.local +++ b/bsp/dir300/root_file_system/etc/rc.local @@ -1,6 +1,9 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment + # todo: all devices or only dir300 ? if uci get network.mesh.macaddr then diff --git a/bsp/fonera/root_file_system/etc/rc.local b/bsp/fonera/root_file_system/etc/rc.local index 5cda5ee..37cf199 100755 --- a/bsp/fonera/root_file_system/etc/rc.local +++ b/bsp/fonera/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #. /etc/firewall.user diff --git a/bsp/wr1043nd/root_file_system/etc/rc.local b/bsp/wr1043nd/root_file_system/etc/rc.local index 384a72d..1deb6de 100755 --- a/bsp/wr1043nd/root_file_system/etc/rc.local +++ b/bsp/wr1043nd/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #Set Mac-Addr of wr1043nd wifi interface if not right #HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'` diff --git a/bsp/wr741nd2/root_file_system/etc/rc.local b/bsp/wr741nd2/root_file_system/etc/rc.local index 3e00dc3..1cec763 100755 --- a/bsp/wr741nd2/root_file_system/etc/rc.local +++ b/bsp/wr741nd2/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #Set Mac-Addr of wr1043nd wifi interface if not right WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address) diff --git a/bsp/wr741nd4/root_file_system/etc/rc.local b/bsp/wr741nd4/root_file_system/etc/rc.local index 3e00dc3..1cec763 100755 --- a/bsp/wr741nd4/root_file_system/etc/rc.local +++ b/bsp/wr741nd4/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #Set Mac-Addr of wr1043nd wifi interface if not right WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address) diff --git a/bsp/wr841n8/root_file_system/etc/rc.local b/bsp/wr841n8/root_file_system/etc/rc.local index 92ba520..ad677ae 100755 --- a/bsp/wr841n8/root_file_system/etc/rc.local +++ b/bsp/wr841n8/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #Set Mac-Addr of wr1043nd wifi interface if not right WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address) diff --git a/bsp/wr841nd7/root_file_system/etc/rc.local b/bsp/wr841nd7/root_file_system/etc/rc.local index 3e00dc3..1cec763 100755 --- a/bsp/wr841nd7/root_file_system/etc/rc.local +++ b/bsp/wr841nd7/root_file_system/etc/rc.local @@ -1,6 +1,8 @@ # Put your custom commands here that should be executed once # the system init finished. By default this file does nothing. +# collect environment info and write to dot-script +/etc/environment.sh > /tmp/environment #Set Mac-Addr of wr1043nd wifi interface if not right WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)