immortalwrt/package/ctcgfw/qos-gargoyle/files/qos_gargoyle.hotplug
2020-02-25 23:51:26 +08:00

13 lines
258 B
Bash

#!/bin/sh
if [ "$INTERFACE" = "wan" ]; then
if [ -h /etc/rc.d/S50qos_gargoyle ] ; then
if [ "$ACTION" = "ifup" ]; then
/etc/init.d/qos_gargoyle start $DEVICE
fi
fi
if [ "$ACTION" = "ifdown" ]; then
/etc/init.d/qos_gargoyle stop
fi
fi