Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

wget Dateiname
echo 3 > /proc/sys/vm/drop_caches
sysupgrade firmwaredatei


Log lesen
logread
oder vortlaufend logread -f

Parameter Updatefest (alt)

###########################################

#Hier die notwendigen Anpassungen durchfuehren !!Ohne Leerzeichen!!
###########################################

kanal=9
name=FF-RE-HP-VZ-03
wlanmesh_disabled=1
location=1
lati=51.566296
longi=7.176389

###########################################
# ab hier nichts aendern
###########################################

hostname=$name-K$kanal
if [ "$(uci get wireless.radio0.channel)" != "$kanal" ]; then
uci set wireless.radio0.channel=$kanal; fi

uci set wireless.mesh_radio0.disabled=0

if [ "$(uci get wireless.mesh_radio0.disabled)" != "$wlanmesh_disabled" ]; then
uci set wireless.mesh_radio0.disabled=$wlanmesh_disabled; fi
sleep 2
/sbin/wifi

if [ "$(uci get system.@system[0].hostname)" != "$hostname" ]; then
uci set system.@system[0].hostname=$hostname && uci commit; fi

if [ "$(uci get gluon-node-info.@location[0].share_location)" != "$location" ]; then
uci set gluon-node-info.@location[0].share_location=$location && uci set gluon-node-info.@location[0]='location' && uci commit; fi

if [ "$(uci get gluon-node-info.@location[0].latitude)" != "$lati" ]; then
uci set gluon-node-info.@location[0].latitude=$lati && uci commit; fi

if [ "$(uci get gluon-node-info.@location[0].longitude)" != "$longi" ]; then
uci set gluon-node-info.@location[0].longitude=$longi && uci commit; fi

exit 0