aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkmartin36 <Kevin.Martin@gtri.gatech.edu>2023-09-14 21:29:27 -0400
committerSam James <sam@gentoo.org>2023-10-19 23:57:19 +0100
commitbf02831a7a59f5552c916dde7dd47296a7bce0b1 (patch)
tree0b85b36fa80a6fe4551883f38179b504f694cef4
parentMakefile.inc: prepare for 0.7.6 (diff)
downloadnetifrc-bf02831a7a59f5552c916dde7dd47296a7bce0b1.tar.gz
netifrc-bf02831a7a59f5552c916dde7dd47296a7bce0b1.tar.bz2
netifrc-bf02831a7a59f5552c916dde7dd47296a7bce0b1.zip
dhcpcd: Fixing the handling of dhcpcd arguments with spaces
Bug: https://bugs.gentoo.org/881039 Signed-off-by: Kevin Martin <kevinmbecause@gmail.com> Fixes: bd8ff4aa89e1d56e9886dad32bb2406c8f43c747 Closes: https://github.com/gentoo/netifrc/pull/48 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--net/dhcpcd.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh
index 6bd44ba..2493f27 100644
--- a/net/dhcpcd.sh
+++ b/net/dhcpcd.sh
@@ -90,8 +90,8 @@ dhcpcd_stop()
eval opts=\$dhcp_${IFVAR}
[ -z "${opts}" ] && opts=${dhcp}
case " ${opts} " in
- *" release "*) dhcpcd -k "${args}" "${IFACE}" ;;
- *) dhcpcd -x "${args}" "${IFACE}" ;;
+ *" release "*) dhcpcd -k ${args} "${IFACE}" ;;
+ *) dhcpcd -x ${args} "${IFACE}" ;;
esac
[ -f "${argsfile}" ] && rm -f "${argsfile}"
eend $?