applications/luci-splash: luci-splashd is obsolete, remove start & stop for it (again)
[project/luci.git] / applications / luci-splash / root / etc / init.d / luci_splash
index 582c2e2..d9ef21c 100755 (executable)
@@ -108,7 +108,7 @@ qos_iface_add() {
        # 78 -> upload root qdisc
        # 79 -> fwmark
 
-       tc qdisc del dev "$iface" root handle 77:
+       silent tc qdisc del dev "$iface" root handle 77:
 
        if [ "$LIMIT_UP" -gt 0 -a "$LIMIT_DOWN" -gt 0 ]; then
                tc qdisc add dev "$iface" root handle 77: htb
@@ -134,9 +134,9 @@ qos_iface_add() {
 qos_iface_del() {
        local iface="$1"
 
-       tc qdisc del dev "$iface" root handle 77:
-       tc qdisc del dev "$iface" root handle 78:
-       tc filter del dev "$iface" parent ffff: protocol ip prio 1 handle 79 fw
+       silent tc qdisc del dev "$iface" root handle 77:
+       silent tc qdisc del dev "$iface" root handle 78:
+       silent tc filter del dev "$iface" parent ffff: protocol ip prio 1 handle 79 fw
 }
 
 boot() {
@@ -233,9 +233,6 @@ start() {
        grep -q luci-splash /etc/crontabs/root || {
                echo '*/5 * * * *       /usr/sbin/luci-splash sync' >> /etc/crontabs/root
        }
-
-       ### Start the splash httpd
-       start-stop-daemon -S -m -p /var/run/luci-splashd.pid -b -q -x /usr/bin/luci-splashd
 }
 
 stop() {
@@ -260,9 +257,6 @@ stop() {
        silent iptables -t nat    -X luci_splash_prerouting
        silent iptables -t filter -X luci_splash_counter
        silent iptables -t mangle -X luci_splash_mark
-
-       ### Stop the splash httpd
-       start-stop-daemon -K -p /var/run/luci-splashd.pid -s KILL -q
        
        sed -ie '/\/usr\/sbin\/luci-splash sync/d' /var/spool/cron/crontabs/root
 }