From ea24eb2409a900b436bed827050e4a9e8ce0bd08 Mon Sep 17 00:00:00 2001 From: Rajan Vaja Date: Thu, 4 Aug 2016 15:08:49 +0530 Subject: [PATCH] coova-chilli: Fix removal of old files Before starting chilli instance, it first removes generated files (/var/run/chilli*) for the instance. While deleting generated files, it doesn't match full instance name. Thus if coova-chilli config file (/etc/config/chilli) has instances wlan11 and wlan1 in order, when creating coova-chilli instance for wlan1, it is removing files generated for wlan11 instances also (as it uses wlan1* in remove command). Fix issue by matching full instance name while removing old files. Signed-off-by: Rajan Vaja Signed-off-by: Bhargav Patel --- net/coova-chilli/Makefile | 2 +- net/coova-chilli/files/chilli.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/net/coova-chilli/Makefile b/net/coova-chilli/Makefile index eea40d0a3..b926a1d08 100644 --- a/net/coova-chilli/Makefile +++ b/net/coova-chilli/Makefile @@ -12,7 +12,7 @@ PKG_VERSION:=1.3.0+20141128 PKG_MAINTAINER:=Imre Kaloz PKG_LICENSE:=GPL-2.0+ PKG_LICENSE_FILES:=COPYING -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=git://github.com/coova/coova-chilli diff --git a/net/coova-chilli/files/chilli.init b/net/coova-chilli/files/chilli.init index 15b79af37..0103a2385 100644 --- a/net/coova-chilli/files/chilli.init +++ b/net/coova-chilli/files/chilli.init @@ -7,7 +7,7 @@ config_cb() { chilli_inst=$2 if [ "$chilli_inst" != "" ] then - rm -f /var/run/chilli_${chilli_inst}* + rm -f /var/run/chilli_${chilli_inst}.* chilli_conf=/var/run/chilli_${chilli_inst}.conf eval "start_chilli_$chilli_inst=1" fi