Ignore:
Timestamp:
2011-11-04T23:12:41+01:00 (5 years ago)
Author:
nico
Message:

packages/baresip: update to 0.3.0 (thanks to Alfred E. Heggestad), make it modular, use start-stop-daemon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/baresip/files/baresip.init

    r24640 r28756  
    11#!/bin/sh /etc/rc.common 
    22# 
     3# Copyright (C) 2010-2011 OpenWrt.org 
    34# Copyright (C) 2010 Alfred E. Heggestad 
    45# 
     
    67START=92 
    78BIN=baresip 
    8 DEFAULT=/etc/default/$BIN 
    99OPTIONS=-d 
    1010 
    1111start() { 
    12        [ -f $DEFAULT ] && . $DEFAULT 
    13        $BIN $OPTIONS 
     12        start-stop-daemon -S -q -x $BIN -- $OPTIONS 
    1413} 
    1514 
    1615stop() { 
    17        killall $BIN 
     16        start-stop-daemon -K -q -x $BIN 
    1817} 
    19  
Note: See TracChangeset for help on using the changeset viewer.