Changeset 28915


Ignore:
Timestamp:
2011-11-10T00:43:35+01:00 (6 years ago)
Author:
nico
Message:

packages/parprouted: use new service functions

Location:
packages/net/parprouted
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/parprouted/Makefile

    r26094 r28915  
    11# 
    2 # Copyright (C) 2006 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:=parprouted 
    1111PKG_VERSION:=0.64 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/parprouted/files/parprouted.init

    r15247 r28915  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 BIN=parprouted 
    6 DEFAULT=/etc/default/$BIN 
     6PROG="parprouted" 
     7COMMAND="/usr/sbin/$PROG" 
     8DEFAULT="/etc/default/$PROG" 
    79 
    810start() { 
    911        [ -f $DEFAULT ] && . $DEFAULT 
    10         $BIN $OPTIONS 
     12        service_start $COMMAND $OPTIONS 
    1113} 
    1214 
    1315stop() { 
    14         killall $BIN 
     16        service_stop $COMMAND 
    1517} 
Note: See TracChangeset for help on using the changeset viewer.