[package] do not ignore enabled option in init script, bump release number (#6072)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@18491 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2009-11-23 00:35:38 +00:00
parent 317152f6e1
commit 95ebc986e1
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,7 @@ include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=miniupnpd
PKG_VERSION:=1.3
PKG_RELEASE:=4
PKG_RELEASE:=5
PKG_MD5SUM:=b5e70e80dcf45b424b8fe3c966bdc613
PKG_SOURCE_URL:=http://miniupnp.free.fr/files

View File

@ -3,7 +3,7 @@ START=95
start() {
config_load "upnpd"
local extiface intiface upload download logging secure
local extiface intiface upload download logging secure enabled
config_get extiface config external_iface
config_get intiface config internal_iface
@ -11,6 +11,7 @@ start() {
config_get download config download
config_get_bool logging config log_output 0
config_get_bool secure config secure_mode 0
config_get_bool enabled config enabled 0
include /lib/network
scan_interfaces
@ -37,9 +38,9 @@ start() {
append args "-S"
if [ "$logging" = "1" ]; then
eval start-stop-daemon -S -x miniupnpd -- $args -d | logger -t miniupnpd &
[ "$enabled" -gt 0 ] && eval start-stop-daemon -S -x miniupnpd -- $args -d | logger -t miniupnpd &
else
eval start-stop-daemon -S -x miniupnpd -- $args 2>/dev/null
[ "$enabled" -gt 0 ] && eval start-stop-daemon -S -x miniupnpd -- $args 2>/dev/null
fi
# start firewall