Changeset 29063


Ignore:
Timestamp:
2011-11-13T23:15:53+01:00 (6 years ago)
Author:
nico
Message:

packages/portmap: use new service functions

Location:
packages/net/portmap
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/portmap/Makefile

    r25842 r29063  
    11# 
    2 # Copyright (C) 2006-2010 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1010PKG_NAME:=portmap 
    1111PKG_VERSION:=6.0 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 
  • packages/net/portmap/files/portmap.init

    r19564 r29063  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006-2008 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    44START=19 
    55STOP=19 
    66 
    7 NAME=portmap 
    8 PROG=/usr/sbin/$NAME 
    9 DEFAULT=/etc/default/$NAME 
    10  
    117start() { 
    12         [ -f $DEFAULT ] && . $DEFAULT 
    13         start-stop-daemon -q -S -x $PROG -- $OPTIONS 
     8        service_start /usr/sbin/portmap 
    149} 
    1510 
    1611stop() { 
    17         start-stop-daemon -q -K -x $PROG -- $OPTIONS 
     12        service_stop /usr/sbin/portmap 
    1813} 
Note: See TracChangeset for help on using the changeset viewer.