netifd: rewrite packet steering script
[openwrt/staging/pepe2k.git] / package / network / config / netifd / files / etc / init.d / packet_steering
index 9d8f791e23b3059c23d6517f8f45953db41f4248..d6f6afc2e1b5322cb2d91357e228fcd77552087d 100755 (executable)
@@ -14,5 +14,10 @@ service_triggers() {
 }
 
 reload_service() {
-       /usr/libexec/network/packet-steering.sh
+       packet_steering="$(uci get "network.@globals[0].packet_steering")"
+       if [ -e "/usr/libexec/platform/packet-steering.sh" ]; then
+               /usr/libexec/platform/packet-steering.sh "$packet_steering"
+       else
+               /usr/libexec/network/packet-steering.uc "$packet_steering"
+       fi
 }