forked from freifunk-franken/firmware
add execution of environment variables script to rc.local
This commit is contained in:
parent
212bdd41a1
commit
c306813c26
|
@ -1,6 +1,9 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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 ?
|
# todo: all devices or only dir300 ?
|
||||||
if uci get network.mesh.macaddr
|
if uci get network.mesh.macaddr
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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 ?
|
# todo: all devices or only dir300 ?
|
||||||
if uci get network.mesh.macaddr
|
if uci get network.mesh.macaddr
|
||||||
then
|
then
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#. /etc/firewall.user
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#Set Mac-Addr of wr1043nd wifi interface if not right
|
||||||
#HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'`
|
#HARDWARE_MACADDR=`ifconfig -a wlan0 | grep 'HWaddr' | awk '{ print $5}'`
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#Set Mac-Addr of wr1043nd wifi interface if not right
|
||||||
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#Set Mac-Addr of wr1043nd wifi interface if not right
|
||||||
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#Set Mac-Addr of wr1043nd wifi interface if not right
|
||||||
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# Put your custom commands here that should be executed once
|
# Put your custom commands here that should be executed once
|
||||||
# the system init finished. By default this file does nothing.
|
# 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
|
#Set Mac-Addr of wr1043nd wifi interface if not right
|
||||||
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
WLAN0_MACADDR=$(cat /sys/class/net/wlan0/address)
|
||||||
|
|
Loading…
Reference in New Issue