Developing lightweight computation at the DSG edge

Commit 8f09628c authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[qmp-system] Remove OLSR debris



Related #218
Signed-off-by: default avatarRoger Pueyo Centelles <roger.pueyo@guifi.net>
parent d422f0db
#!/bin/sh
[ -f /etc/config/mini_snmpd ] && {
# Enable mini_snmpd
uci set mini_snmpd.@mini_snmpd[0].enabled=1
# Enable mini_snmpd
uci set mini_snmpd.@mini_snmpd[0].enabled=1
# Make mini_snmpd listen on any interfaces
uci set mini_snmpd.@mini_snmpd[0].listen_interface=""
# Make mini_snmpd listen on any interfaces
uci set mini_snmpd.@mini_snmpd[0].listen_interface=""
# Remove br-lan from the interfaces list
local elem
local list="$(uci get mini_snmpd.@mini_snmpd[0].interfaces)"
# Remove br-lan from the interfaces list
local elem
local list="$(uci get mini_snmpd.@mini_snmpd[0].interfaces)"
uci delete mini_snmpd.@mini_snmpd[0].interfaces
uci delete mini_snmpd.@mini_snmpd[0].interfaces
for elem in $list; do
if [ "$elem" != "br-lan" ]; then
echo $elem
uci add_list mini_snmpd.@mini_snmpd[0].interfaces=$elem
fi
done
uci commit
for elem in $list; do
if [ "$elem" != "br-lan" ]; then
echo $elem
uci add_list mini_snmpd.@mini_snmpd[0].interfaces=$elem
fi
done
uci commit
# Ensure wlan0 is added
if ! uci get mini_snmpd.@mini_snmpd[0].interfaces | egrep -q 'wlan0'; then
uci add_list mini_snmpd.@mini_snmpd[0].interfaces="wlan0"
fi
# Ensure wlan0 is added
if ! uci get mini_snmpd.@mini_snmpd[0].interfaces | egrep -q 'wlan0'; then
uci add_list mini_snmpd.@mini_snmpd[0].interfaces="wlan0"
fi
# Ensure lan is added
if ! uci get mini_snmpd.@mini_snmpd[0].interfaces | egrep -q 'lan'; then
uci add_list mini_snmpd.@mini_snmpd[0].interfaces="lan"
fi
# Ensure lan is added
if ! uci get mini_snmpd.@mini_snmpd[0].interfaces | egrep -q 'lan'; then
uci add_list mini_snmpd.@mini_snmpd[0].interfaces="lan"
fi
uci commit
uci commit
# Remove old items
uci_remove_list_element "olsrd.@Interface[0].interface" "wan"
uci commit
/etc/init.d/mini_snmpd restart
/etc/init.d/mini_snmpd restart
}
\ No newline at end of file
......@@ -357,8 +357,6 @@ function nodemode.write(self, section, value)
uciout:set("qmp","networks","lan_address","172.30.22.1")
uciout:set("qmp","networks","lan_netmask","255.255.0.0")
uciout:set("qmp","networks","bmx6_ipv4_prefix24","10.202.0")
uciout:set("qmp","networks","olsr6_ipv4_address","")
uciout:set("qmp","networks","olsr6_ipv4_prefix24","10.201")
uciout:set("qmp","node","device_name",device_name)
if nodeip_roaming == nil then
uciout:set("qmp","networks","bmx6_ipv4_address","")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment