Ignore:
Timestamp:
2011-06-09T19:04:06+02:00 (5 years ago)
Author:
jow
Message:

[packages] miniupnpd: properly handle multiple internal interfaces in hotplug helper (#9538)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/miniupnpd/files/miniupnpd.iface.hotplug

    r25593 r27151  
    11#!/bin/sh 
    22 
    3 /etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && { 
    4         local intif="$(uci_get upnpd config internal_iface)" 
    5         [ "$ACTION" = "ifup" ] && [ "$INTERFACE" = "$intif" ] && \ 
    6                 /etc/init.d/miniupnpd restart 
     3/etc/init.d/miniupnpd enabled && [ -n "`pidof miniupnpd`" ] && [ "$ACTION" = "ifup" ] && { 
     4        local intif 
     5        for intif in $(uci_get upnpd config internal_iface); do 
     6                [ "$INTERFACE" = "$intif" ] && /etc/init.d/miniupnpd restart 
     7        done 
    78} 
Note: See TracChangeset for help on using the changeset viewer.