#!/bin/sh #---------------------------------------------------------------------------- # /etc/rc.d/circuits.dhcp - DHCP circuit(s) # # Last Update: $Id$ #---------------------------------------------------------------------------- # $1 = circuit information file # $2 = variable receiving an error message (if any) dhcp_circuit_add() { circ_dev=$circ_dhcp_dev local circ_dhcp_startdelay=${circ_dhcp_startdelay:-0} local circ_dhcp_accept_csr=${circ_dhcp_accept_csr:-yes} # keep this in sync with the defaults in dhcp_client.ext! case $circ_protocols in ipv4) local circ_dhcp_daemon=${circ_dhcp_daemon:-dhcpcd} ;; ipv6) local circ_dhcp_daemon=${circ_dhcp_daemon:-dibbler} ;; esac circuit_allocate_device dhcp circ_alias cat >> $1 <