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
commit28fef976fa7831a17fd9d3a9ff929b1e31ee0f39 (patch)
treed6e81017d12c79f441a31accea6b14d86f2b4c57 /net-misc
parentx86 stable (diff)
downloadgentoo-2-28fef976fa7831a17fd9d3a9ff929b1e31ee0f39.tar.gz
gentoo-2-28fef976fa7831a17fd9d3a9ff929b1e31ee0f39.tar.bz2
gentoo-2-28fef976fa7831a17fd9d3a9ff929b1e31ee0f39.zip
Remove bashisms from dhcrelay script, #171766 thanks to Natanael Copa.
(Portage version: 2.1.2.2)
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/dhcp/ChangeLog5
-rw-r--r--net-misc/dhcp/files/dhcrelay.init10
2 files changed, 9 insertions, 6 deletions
diff --git a/net-misc/dhcp/ChangeLog b/net-misc/dhcp/ChangeLog
index cdf3782cc2ef..6398491b0c4d 100644
--- a/net-misc/dhcp/ChangeLog
+++ b/net-misc/dhcp/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/dhcp
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/ChangeLog,v 1.124 2007/03/10 20:21:39 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/dhcp/ChangeLog,v 1.125 2007/03/22 15:36:59 uberlord Exp $
+
+ 22 Mar 2007; Roy Marples <uberlord@gentoo.org> files/dhcrelay.init:
+ Remove bashisms from dhcrelay script, #171766 thanks to Natanael Copa.
*dhcp-3.0.5-r1 (10 Mar 2007)
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 $?
}