diff options
Diffstat (limited to 'package/system/procd/files/service')
-rw-r--r-- | package/system/procd/files/service | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/package/system/procd/files/service b/package/system/procd/files/service index 1ceacfe5ad..0ca7058041 100644 --- a/package/system/procd/files/service +++ b/package/system/procd/files/service @@ -2,17 +2,17 @@ main() { local service="$1" - local cmd="$2" + shift local boot status if [ -f "/etc/init.d/${service}" ]; then - /etc/init.d/"${service}" "${cmd}" + /etc/init.d/"${service}" "$@" exit "$?" fi if [ -n "$service" ]; then - echo "Service \"$1\" not found:" + echo "Service \"$service\" not found:" exit 1 fi |