contrib/meshwizard: add support for setting up qos on wan
[project/luci.git] / contrib / package / meshwizard / files / usr / bin / meshwizard / wizard.sh
index f7ee7cf..77c6cd9 100755 (executable)
@@ -12,7 +12,7 @@
 . /lib/functions.sh
 
 echo "
-/* Meshwizard 0.1.0 */
+/* Meshwizard 0.2.0 */
 "
 
 # config
@@ -71,6 +71,10 @@ if [ "$wan_proto" == "dhcp" ]; then
        $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