Changeset 30214


Ignore:
Timestamp:
2012-02-05T16:22:32+01:00 (6 years ago)
Author:
jow
Message:

[packages_10.03.2] linuxigd: merge r29070

Location:
branches/packages_10.03.2/net/linuxigd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_10.03.2/net/linuxigd/Makefile

    r26055 r30214  
    11#  
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# Copyright (C) 2006 loswillios 
    44# 
     
    1111PKG_NAME:=linuxigd 
    1212PKG_VERSION:=1.0 
    13 PKG_RELEASE:=1 
     13PKG_RELEASE:=2 
    1414 
    1515PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • branches/packages_10.03.2/net/linuxigd/files/upnpd.init

    r6500 r30214  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# Copyright (C) 2006 loswillios 
     4 
    45START=65 
    56 
    67include /lib/network 
    7 scan_interfaces 
    8 config_get WAN wan ifname 
    9 config_get LAN lan ifname 
    108 
    119start() { 
    12     echo -n "Starting UPnP: " 
    13     route add -net 239.0.0.0 netmask 255.0.0.0 $LAN 
    14     upnpd $WAN $LAN 
    15     echo "OK" 
     10        scan_interfaces 
     11        config_get wan_if 'wan' 'ifname' 
     12        config_get lan_if 'lan' 'ifname' 
     13        [ -n "$wan_if" ] || return 1 
     14 
     15        [ -n "$lan_if" ] && route add -net 239.0.0.0 netmask 255.0.0.0 $lan_if 
     16        service_start /usr/sbin/upnpd $wan_if $lan_if 
    1617} 
    1718 
    1819stop() { 
    19     echo -n "Stopping UPnP: " 
    20     route del -net 239.0.0.0 netmask 255.0.0.0 $LAN 
    21     killall upnpd 
    22     echo "OK" 
     20        scan_interfaces 
     21        config_get lan_if 'lan' 'ifname' 
     22 
     23        service_stop /usr/sbin/upnpd 
     24        [ -n "$lan_if" ] && route del -net 239.0.0.0 netmask 255.0.0.0 $lan_if 
    2325} 
    24  
    25 restart() { 
    26         stop 
    27         sleep 5 
    28         start 
    29 } 
Note: See TracChangeset for help on using the changeset viewer.