From 2b2ab49c6324e149b67f42dc7f2ce380e1d0dd32 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 17 Nov 2018 10:28:22 +0800 Subject: [PATCH] rc.d/dhcpcd: Fix passing of extra arguments Before this fix, 'dhcpcd' ignores extra arguments when calling 'run_rc_command()', which causes '/etc/rc.d/dhcpcd restart ' to fail. Fix this issue by passing all arguments to 'run_rc_command()'. --- etc/rc.d/dhcpcd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/rc.d/dhcpcd b/etc/rc.d/dhcpcd index 743a6a9d49..4a5de5afe6 100644 --- a/etc/rc.d/dhcpcd +++ b/etc/rc.d/dhcpcd @@ -43,4 +43,4 @@ pidfile=$($command -P $_flags $command_args 2>/dev/null) : ${pidfile:=/var/run/$name.pid} unset _flags _if_args -run_rc_command "$1" +run_rc_command "$@" -- 2.41.0