summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/jail8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.d/jail b/etc/rc.d/jail
index e9dad2c..807550b 100644
--- a/etc/rc.d/jail
+++ b/etc/rc.d/jail
@@ -239,5 +239,9 @@ jail_stop()
}
load_rc_config $name
-[ -n "$2" ] && jail_list="$2"
-run_rc_command "$1"
+cmd="$1"
+if [ $# -gt 0 ]; then
+ shift
+fi
+[ -n "$*" ] && jail_list="$*"
+run_rc_command "${cmd}"
OpenPOWER on IntegriCloud