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

packages/radvd: use new service functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/ipv6/radvd/files/radvd.init

    r27682 r28927  
    11#!/bin/sh /etc/rc.common 
     2# Copyright (C) 2008-2011 OpenWrt.org 
    23# Copyright (C) 2008  Alina Friedrichsen <x-alina@gmx.net> 
     4 
    35START=50 
     6 
     7SERVICE_USE_PID=1 
    48 
    59RADVD_INTERFACE_STRING_OPTIONS='MaxRtrAdvInterval MinRtrAdvInterval MinDelayBetweenRAs AdvLinkMTU AdvReachableTime AdvRetransTimer AdvCurHopLimit AdvDefaultLifetime AdvDefaultPreference HomeAgentLifetime HomeAgentPreference' 
     
    426430        sysctl -w net.ipv6.conf.all.forwarding=1 > /dev/null 2> /dev/null 
    427431 
    428         radvd -C "$RADVD_CONFIG_FILE" -m stderr_syslog -p /var/run/radvd.pid 
     432        service_start /usr/sbin/radvd -C "$RADVD_CONFIG_FILE" -m stderr_syslog -p /var/run/radvd.pid 
    429433} 
    430434 
    431435stop() { 
    432         killall radvd 
    433 } 
     436        service_stop /usr/sbin/radvd 
     437} 
Note: See TracChangeset for help on using the changeset viewer.