summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2007-03-22 15:36:59 +0000
committerRoy Marples <uberlord@gentoo.org>2007-03-22 15:36:59 +0000
commitce8328519368217c21fc00a962af4bd57ed6b26d (patch)
treeec8ea375b484849272a32c9c5a4a36141bab867b /net-misc/dhcp/files
parentx86 stable (diff)
downloadhistorical-ce8328519368217c21fc00a962af4bd57ed6b26d.tar.gz
historical-ce8328519368217c21fc00a962af4bd57ed6b26d.tar.bz2
historical-ce8328519368217c21fc00a962af4bd57ed6b26d.zip
Remove bashisms from dhcrelay script, #171766 thanks to Natanael Copa.
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'net-misc/dhcp/files')
-rw-r--r--net-misc/dhcp/files/dhcrelay.init10
1 files changed, 5 insertions, 5 deletions
diff --git a/net-misc/dhcp/files/dhcrelay.init b/net-misc/dhcp/files/dhcrelay.init
index c373f4a6eac2..2f92956be8fc 100644
--- a/net-misc/dhcp/files/dhcrelay.init
+++ b/net-misc/dhcp/files/dhcrelay.init
@@ -1,7 +1,7 @@
#!/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.1 2005/12/07 13:59:32 uberlord Exp $
+# $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
@@ -9,19 +9,19 @@ depend() {
}
start() {
- if [[ -z ${DHCRELAY_SERVERS} ]]; then
+ if [ -z "${DHCRELAY_SERVERS}" ]; then
eerror "No DHCRELAY_SERVERS specified in /etc/conf.d/dhcrelay"
return 1
fi
- local IFACES="" i
+ local IFACES= i=
for i in ${IFACE} ; do
IFACES="${IFACES} -i ${i}"
done
ebegin "Starting dhcrelay"
- eval start-stop-daemon --start --exec /usr/sbin/dhcrelay \
- -- "${IFACES}" -q "${DHCRELAY_OPTS}" "${DHCRELAY_SERVERS}"
+ start-stop-daemon --start --exec /usr/sbin/dhcrelay \
+ -- -q ${IFACES} ${DHCRELAY_OPTS} ${DHCRELAY_SERVERS}
eend $?
}