forked from freifunk-franken/firmware
add execution of environment variables script to rc.local
This commit is contained in:
parent
6d11476ed8
commit
4a4b0288c5
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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}'`
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue