1372cf2b83
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/mds@1330 6952d904-891a-0410-993b-d76249ca496b
33 lines
736 B
Plaintext
33 lines
736 B
Plaintext
#!/sbin/runscript
|
|
# Copyright 1999-2004 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/files/dhcrelay.init,v 1.2 2007/03/22 15:36:59 uberlord Exp $
|
|
|
|
depend() {
|
|
need net
|
|
use logger
|
|
}
|
|
|
|
start() {
|
|
if [ -z "${DHCRELAY_SERVERS}" ]; then
|
|
eerror "No DHCRELAY_SERVERS specified in /etc/conf.d/dhcrelay"
|
|
return 1
|
|
fi
|
|
|
|
local IFACES= i=
|
|
for i in ${IFACE} ; do
|
|
IFACES="${IFACES} -i ${i}"
|
|
done
|
|
|
|
ebegin "Starting dhcrelay"
|
|
start-stop-daemon --start --exec /usr/sbin/dhcrelay \
|
|
-- -q ${IFACES} ${DHCRELAY_OPTS} ${DHCRELAY_SERVERS}
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping dhcrelay"
|
|
start-stop-daemon --stop --pidfile /var/run/dhcrelay.pid
|
|
eend $?
|
|
}
|