Changeset 29049


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

packages/rp-l2tp: use new service functions

Location:
packages/net/rp-l2tp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/rp-l2tp/Makefile

    r19705 r29049  
    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:=rp-l2tp 
    1111PKG_VERSION:=0.4 
    12 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
  • packages/net/rp-l2tp/files/rp-l2tpd.init

    r10734 r29049  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
    33 
    44START=60 
    5 DEFAULT=/etc/default/rp-l2tpd 
    6 RUN_D=/var/run 
    7 [ -f $DEFAULT ] && . $DEFAULT 
    85 
    96start() { 
    10         [ -d $RUN_D ] || mkdir -p $RUN_D 
    11         l2tpd $OPTIONS 
     7        service_start /usr/sbin/l2tpd 
    128} 
    139 
    1410stop() { 
    15         killall l2tpd 
     11        service_stop /usr/sbin/l2tpd 
    1612} 
    1713 
Note: See TracChangeset for help on using the changeset viewer.