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>
Toke Høiland-Jørgensen 9 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
9 9
 
10 10
 PKG_NAME:=sqm-scripts
11 11
 PKG_VERSION:=8
12
-PKG_RELEASE:=3
12
+PKG_RELEASE:=4
13 13
 PKG_LICENSE:=GPLv2
14 14
 
15 15
 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 @@
1 1
 #!/bin/sh
2 2
 
3
-[ "$ACTION" = ifup ] && /usr/lib/sqm/run.sh start ${DEVICE}
3
+[ "$ACTION" = ifup ] && /etc/init.d/sqm enabled && /usr/lib/sqm/run.sh start ${DEVICE}