miniupnpd: fix local variables in hotplug, change startup priority
* Remove 'local' variable definitions from hotplug script. Busybox 1.25.0 does not allow local variables defined outside functions. This fixes #231 * Change startup priority from 95 to 94, so that miniupnpd starts before S95done (which is intended to be run last). Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
This commit is contained in:
parent
546405983f
commit
3db27f27b2
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=miniupnpd
|
||||
PKG_VERSION:=2.0
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_SOURCE_URL:=http://miniupnp.free.fr/files
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||
|
|
|
@ -13,11 +13,9 @@
|
|||
|
||||
[ ! "$ACTION" = "ifup" ] && service_check /usr/sbin/miniupnpd && exit 0
|
||||
|
||||
local iface
|
||||
local ifname
|
||||
local tmpconf="/var/etc/miniupnpd.conf"
|
||||
local extiface=$(uci get upnpd.config.external_iface)
|
||||
local extzone=$(uci get upnpd.config.external_zone)
|
||||
tmpconf="/var/etc/miniupnpd.conf"
|
||||
extiface=$(uci get upnpd.config.external_iface)
|
||||
extzone=$(uci get upnpd.config.external_zone)
|
||||
|
||||
. /lib/functions/network.sh
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh /etc/rc.common
|
||||
# Copyright (C) 2006-2014 OpenWrt.org
|
||||
|
||||
START=95
|
||||
START=94
|
||||
STOP=15
|
||||
|
||||
SERVICE_USE_PID=1
|
||||
|
|
Loading…
Reference in New Issue