]>
git.ipfire.org Git - ipfire-2.x.git/blob - src/initscripts/system/dhcrelay
2 ########################################################################
3 # Begin $rc_base/init.d/dhcrelay
5 # Description : The DHCP Relay Daemon
7 ########################################################################
12 CONFIG_FILE
="/var/ipfire/dhcp/relay"
14 if [ -r "${CONFIG_FILE}" ]; then
15 eval $
(/usr
/local
/bin
/readhash
${CONFIG_FILE})
20 for interface
in ${INTERFACES}; do
21 ARGS
="${ARGS} -i ${interface}"
24 ARGS
="${ARGS} ${SERVERS}"
28 boot_mesg
"Starting DHCP Relay..."
29 loadproc
/usr
/sbin
/dhcrelay
${ARGS}
33 boot_mesg
"Stopping DHCP Relay..."
34 killproc
-p /var
/run
/dhcrelay.pid
/usr
/sbin
/dhcrelay
44 statusproc
/usr
/sbin
/dhcrelay
48 echo "Usage: ${0} {start|stop|restart|status}"
53 # End $rc_base/init.d/dhcrelay