diff options
author | 2022-12-17 03:26:21 -0500 | |
---|---|---|
committer | 2022-12-25 11:06:36 -0800 | |
commit | bd8ff4aa89e1d56e9886dad32bb2406c8f43c747 (patch) | |
tree | a4b10fe2162d3dfc96179e5c6e98c7670f747d72 | |
parent | Merge remote-tracking branch 'github/pr/32' (diff) | |
download | netifrc-bd8ff4aa89e1d56e9886dad32bb2406c8f43c747.tar.gz netifrc-bd8ff4aa89e1d56e9886dad32bb2406c8f43c747.tar.bz2 netifrc-bd8ff4aa89e1d56e9886dad32bb2406c8f43c747.zip |
Adding the saved args to the stop command
Closes: https://bugs.gentoo.org/881039
Signed-off-by: Kevin Martin <kevinmbecause@gmail.com>
(cherry picked from commit 0e1c19959a6d82accdb57fa7a1f5b0036037a001)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Closes: https://github.com/gentoo/netifrc/pull/41
-rw-r--r-- | net/dhcpcd.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/dhcpcd.sh b/net/dhcpcd.sh index 1e1bbe0..1380944 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 "${IFACE}" ;; - *) dhcpcd -x "${IFACE}" ;; + *" release "*) dhcpcd -k "${args}" "${IFACE}" ;; + *) dhcpcd -x "${args}" "${IFACE}" ;; esac [ -f "${argsfile}" ] && rm -f "${argsfile}" eend $? |