--- /dev/null
+#!/bin/sh
+# sets up qos-scripts for the wan interface
+
+. /lib/functions.sh
+. $dir/functions.sh
+
+if [ ! -f /etc/config/qos ]; then
+ echo "NOT setting up QOS because /etc/config/qos-scripts was not found"
+else
+ uci batch <<- EOF
+ set qos.wan.enabled=1
+ set qos.wan.upload=$wan_up
+ set qos.wan.download=$wan_down
+ EOF
+ uci_commitverbose "Setup QOS on WAN interface." qos
+
+fi
. /lib/functions.sh
echo "
-/* Meshwizard 0.1.0 */
+/* Meshwizard 0.2.0 */
"
# config
$dir/helpers/setup_wan_dhcp.sh
fi
+if [ -n "$wan_down" -a -n "$wan_up" ]; then
+ $dir/helpers/setup_qos.sh
+fi
+
if [ "$lan_proto" == "static" ] && [ -n "$lan_ip4addr" ] && [ -n "$lan_netmask" ]; then
$dir/helpers/setup_lan_static.sh
fi