2007-01-10 17:39:58 +01:00
|
|
|
#! /bin/sh
|
|
|
|
# Copyright (c) 1996, 1997, 1998 S.u.S.E. GmbH
|
|
|
|
# Copyright (c) 1998, 1999, 2000, 2001 SuSE GmbH
|
|
|
|
# Copyright (c) 2002 SuSE Linux AG
|
2014-11-21 12:33:30 +01:00
|
|
|
# Copyright (c) 2003-2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (C) 2013-2014 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify it under
|
|
|
|
# the terms of the GNU General Public License as published by the Free Software
|
|
|
|
# Foundation; either version 2 of the License, or (at your option) any later
|
|
|
|
# version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
|
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
|
|
|
# details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License along with
|
|
|
|
# this program; if not, see <http://www.gnu.org/licenses/>.
|
2007-01-10 17:39:58 +01:00
|
|
|
#
|
|
|
|
# Author: Peter Poeml <poeml@suse.de>, 2001
|
2010-05-14 00:27:05 +02:00
|
|
|
# Marius Tomaschewski <mt@suse.de>, 2010
|
2007-01-10 17:39:58 +01:00
|
|
|
#
|
|
|
|
# /etc/init.d/dhcrelay
|
|
|
|
# and its symbolic link
|
|
|
|
# /usr/sbin/rcdhcrelay
|
|
|
|
#
|
|
|
|
### BEGIN INIT INFO
|
|
|
|
# Provides: dhcrelay
|
2009-01-19 02:22:10 +01:00
|
|
|
# Required-Start: $network $remote_fs network-remotefs
|
|
|
|
# Should-Start: $named $syslog $time
|
|
|
|
# Required-Stop: $network $remote_fs network-remotefs
|
2007-07-21 17:29:24 +02:00
|
|
|
# Should-Stop: $named $syslog
|
2007-01-10 17:39:58 +01:00
|
|
|
# Default-Start: 3 5
|
|
|
|
# Default-Stop: 0 1 2 6
|
|
|
|
# Short-Description: DHCP Relay
|
2010-05-14 00:27:05 +02:00
|
|
|
# Description: Start DHCP (Dynamic Host Configuration Protocol)
|
|
|
|
# relay agent, forwarding DHCP requests from one
|
|
|
|
# physical network segment to another.
|
2007-01-10 17:39:58 +01:00
|
|
|
### END INIT INFO
|
|
|
|
|
2014-02-10 19:14:12 +01:00
|
|
|
test -x /usr/lib/dhcp/dhcrelay || exit 5
|
|
|
|
case $1 in
|
|
|
|
start|stop|try-restart|restart|force-reload|reload|status|probe|*)
|
|
|
|
export SCRIPT=${0##*/}
|
|
|
|
exec /usr/lib/dhcp/dhcrelay -4 "$@" || exit 1
|
|
|
|
;;
|
2007-01-10 17:39:58 +01:00
|
|
|
esac
|
2014-02-10 19:14:12 +01:00
|
|
|
|