mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 07:28:39 +01:00
net/miniupnpd: check by /etc/init.d/miniupnpd running
Signed-off-by: Chen Minqiang <ptpt52@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=miniupnpd
|
PKG_NAME:=miniupnpd
|
||||||
PKG_VERSION:=2.1.20200510
|
PKG_VERSION:=2.1.20200510
|
||||||
PKG_RELEASE:=4
|
PKG_RELEASE:=5
|
||||||
|
|
||||||
PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
|
PKG_SOURCE_URL:=https://miniupnp.tuxfamily.org/files
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
|
|||||||
@@ -7,9 +7,7 @@
|
|||||||
# - check only on ifup (otherwise lease updates etc would cause
|
# - check only on ifup (otherwise lease updates etc would cause
|
||||||
# miniupnpd state loss)
|
# miniupnpd state loss)
|
||||||
|
|
||||||
. /lib/functions/procd.sh
|
[ "$ACTION" != "ifup" ] && /etc/init.d/miniupnpd running && exit 0
|
||||||
|
|
||||||
[ "$ACTION" != "ifup" ] && procd_running "miniupnpd" "*" && exit 0
|
|
||||||
|
|
||||||
tmpconf="/var/etc/miniupnpd.conf"
|
tmpconf="/var/etc/miniupnpd.conf"
|
||||||
external_iface=$(uci -q get upnpd.config.external_iface)
|
external_iface=$(uci -q get upnpd.config.external_iface)
|
||||||
|
|||||||
Reference in New Issue
Block a user