Developing lightweight computation at the DSG edge

Commit 0e9237b8 authored by p4u's avatar p4u
Browse files

bmx6 ipv6 ula hack is added to another table (50) with more preference than the bmx6 one

removed qmp_wifi_restart uci-default script, it is not longer needed
parent d29c7168
......@@ -251,11 +251,14 @@ qmp_configure_lan_v6() {
echo "Adding quick hack to solve bmx6 ipv6 throw rules problem"
if [ $(cat /etc/rc.local | grep -c ^#BMX6_ULA_LAN_IPV6_HACK) -lt 1 ]; then
sed -i -e "/^exit 0/d" /etc/rc.local
echo "" >> /etc/rc.local
echo "#BMX6_ULA_LAN_IPV6_HACK" >> /etc/rc.local
echo "ip -6 route add $ulan_net dev br-lan table 60" >> /etc/rc.local
echo "ip -6 rule add pref 5000 table 50" >> /etc/rc.local
fi
ip -6 route add $ulan_net dev br-lan table 60
ip -6 route add $ulan_net dev br-lan table 50
ip -6 rule add pref 5000 table 50
echo "Done"
}
......
#!/bin/sh
# Temporal script to re-enable wifi after the boot
# this is to fix a temporaly issue when you are using non-standard wifi chanels
if [ $(cat /etc/rc.local | grep -c ^wifi) -lt 1 ]; then
sed -i -e "/^exit 0/d" /etc/rc.local
echo "wifi" >> /etc/rc.local
fi
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