Browse Source

sqm-scripts: Only run on hotplug if the init script is enabled.

Fixes #1202.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
lilik-openwrt-22.03
Toke Høiland-Jørgensen 10 years ago
parent
commit
7d10659c66
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/sqm-scripts/Makefile
  2. +1
    -1
      net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm

+ 1
- 1
net/sqm-scripts/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=sqm-scripts PKG_NAME:=sqm-scripts
PKG_VERSION:=8 PKG_VERSION:=8
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_LICENSE:=GPLv2 PKG_LICENSE:=GPLv2
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)


+ 1
- 1
net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm View File

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh start ${DEVICE}
[ "$ACTION" = ifup ] && /etc/init.d/sqm enabled && /usr/lib/sqm/run.sh start ${DEVICE}

Loading…
Cancel
Save