Ignore:
Timestamp:
2011-11-10T00:25:17+01:00 (5 years ago)
Author:
nico
Message:

packages/howl: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/howl/files/autoipd.init

    r15247 r28904  
    11#!/bin/sh /etc/rc.common 
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2006-2011 OpenWrt.org 
     3 
    34START=50 
    45 
    5 DEFAULT=/etc/default/autopid 
    6 RUN_D=/var/run 
    7 PID_F=$RUN_D/autoipd.pid 
     6# XXX: pid-file is /var/run/autoipd-<INTERFACE>.pid 
     7SERVICE_USE_PID= 
    88 
    99start() { 
    10         [ -f $DEFAULT ] && . $DEFAULT 
    11         [ -d $RUN_D ] || mkdir -p $RUN_D 
    12         autoipd $OPTIONS 
     10        service_start /usr/sbin/autoipd 
     11} 
     12stop() { 
     13        service_stop /usr/sbin/autoipd 
    1314} 
    1415 
    15 stop() { 
    16         [ -f $PID_F ] && kill $(cat $PID_F) 
    17 } 
    18  
Note: See TracChangeset for help on using the changeset viewer.