source: packages/ipv6/ahcpd/files/ahcpd.init @ 19813

Last change on this file since 19813 was 19813, checked in by kerneis, 6 years ago

[package] ahcpd: update to 0.51, fix scripts

  • Full-featured UCI configuration file (including server mode).
  • Client mode configuration in /etc/config/network (proto ahcp).
  • Launch at most one instance in server/forwarder mode, and as many instance as interfaces in client mode.
  • Add status and reload options to init script.
  • Make /etc/config/ahcpd a config file, simplify Makefile.
  • Do not check the pid file (useless).
  • 29 January 2010: ahcpd 0.51
    • Servers are now configured with a plain-text configuration file.
    • Implemented client-side support for prefix delegation (-P).
    • Made requesting state more persistent, to deal with packet loss.
    • Fixed a typo that prevented the -I option from working.
    • Fixed compilation on BSD systems.
    • Fixed a bug that could cause an expired lease to be discarded when older ones are available.

Signed-off-by: Gabriel Kerneis <kerneis@…>

  • Property svn:copyright set to Copyright (C) 2007 OpenWrt.org
File size: 581 bytes
Line 
1#!/bin/sh /etc/rc.common
2
3START=71
4PID_F="/var/run/ahcpd.pid"
5EXTRA_COMMANDS="status"
6EXTRA_HELP="        status Print ahcpd's status to the log file."
7
8. /lib/network/ahcp.sh
9
10start() {
11        mkdir -p /var/lib
12        config_load ahcpd
13        unset args
14        unset interfaces
15        config_foreach ahcp_config ahcpd
16        config_foreach ahcp_server ahcpd
17        [ -z "$interfaces" ] && return 0
18        eval "/usr/sbin/ahcpd -D -I $PID_F $args $interfaces"
19}
20
21stop() {
22        [ -f "$PID_F" ] && kill $(cat "$PID_F")
23}
24
25status() {
26        [ -f $PID_F ] && kill -USR1 $(cat $PID_F)
27}
28
29reload() {
30        [ -f $PID_F ] && kill -USR2 $(cat $PID_F)
31}
Note: See TracBrowser for help on using the repository browser.