Browse Source

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 <rajan.vaja@gmail.com>
Signed-off-by: Bhargav Patel <br13patel@gmail.com>
lilik-openwrt-22.03
Rajan Vaja 9 years ago
committed by Rajan Vaja
parent
commit
ea24eb2409
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      net/coova-chilli/Makefile
  2. +1
    -1
      net/coova-chilli/files/chilli.init

+ 1
- 1
net/coova-chilli/Makefile View File

@ -12,7 +12,7 @@ PKG_VERSION:=1.3.0+20141128
PKG_MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
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


+ 1
- 1
net/coova-chilli/files/chilli.init View File

@ -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


Loading…
Cancel
Save