Changeset 29056


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

packages/chaosvpn: use new service functions

Location:
packages/net/chaosvpn
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/chaosvpn/Makefile

    r26058 r29056  
    1 # Copyright (C) 2010 OpenWrt.org 
    2 # All rights reserved. 
     1# 
     2# Copyright (C) 2010-2011 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
    55# See /LICENSE for more information. 
     6# 
    67 
    78include $(TOPDIR)/rules.mk 
     
    910PKG_NAME:=chaosvpn 
    1011PKG_VERSION:=2.0 
    11 PKG_RELEASE:=2 
     12PKG_RELEASE:=3 
    1213 
    1314PKG_SOURCE:=${PKG_NAME}-${PKG_VERSION}.tar.gz 
  • packages/net/chaosvpn/files/chaosvpn.init

    r22831 r29056  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2010-2011 OpenWrt.org 
     3 
    24START=99 
     5 
     6SERVICE_DAEMONIZE=1 
    37 
    48start() 
     
    913                exit 1 
    1014        } 
    11         /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf >/dev/null 2>&1 & 
     15        service_start /usr/sbin/chaosvpn -f -c /etc/tinc/chaosvpn.conf 
    1216} 
    1317 
    1418stop() 
    1519{ 
    16         killall chaosvpn 
     20        service_stop /usr/sbin/chaosvpn 
    1721} 
Note: See TracChangeset for help on using the changeset viewer.