aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkmartin36 <Kevin.Martin@gtri.gatech.edu>2022-12-17 03:26:21 -0500
committerRobin H. Johnson <robbat2@gentoo.org>2022-12-25 11:06:36 -0800
commitbd8ff4aa89e1d56e9886dad32bb2406c8f43c747 (patch)
treea4b10fe2162d3dfc96179e5c6e98c7670f747d72
parentMerge remote-tracking branch 'github/pr/32' (diff)
downloadnetifrc-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.sh4
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 $?