From 7d10659c662c66d6b84825a58f7d7a13553f1cc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toke=20H=C3=B8iland-J=C3=B8rgensen?= Date: Tue, 28 Apr 2015 11:05:42 +0200 Subject: [PATCH] sqm-scripts: Only run on hotplug if the init script is enabled. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #1202. Signed-off-by: Toke Høiland-Jørgensen --- net/sqm-scripts/Makefile | 2 +- net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/sqm-scripts/Makefile b/net/sqm-scripts/Makefile index 3fa5e365b..68a599063 100644 --- a/net/sqm-scripts/Makefile +++ b/net/sqm-scripts/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=sqm-scripts PKG_VERSION:=8 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPLv2 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm b/net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm index 439307e31..38ceb25de 100755 --- a/net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm +++ b/net/sqm-scripts/files/etc/hotplug.d/iface/11-sqm @@ -1,3 +1,3 @@ #!/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}