-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
miniupnpd: update to mainline version
- Loading branch information
Dave Taht
committed
Sep 24, 2012
1 parent
49a0b57
commit 97815a0
Showing
3 changed files
with
14 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/sh | ||
|
||
/etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && [ "$ACTION" = "ifup" ] && { | ||
local intif | ||
for intif in $(uci_get upnpd config internal_iface); do | ||
[ "$INTERFACE" = "$intif" ] && /etc/init.d/miniupnpd restart | ||
/etc/init.d/miniupnpd enabled && [ "$ACTION" = "ifup" ] && { | ||
local iface | ||
for iface in $(uci_get upnpd config internal_iface; uci_get upnpd config external_iface); do | ||
[ "$INTERFACE" = "$iface" ] && /etc/init.d/miniupnpd restart | ||
done | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters