From 997f095bf69a4470189e1ccfc345f354899192d8 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer Date: Tue, 31 May 2011 08:27:18 +0200 Subject: rc.d: print usage if not enough argument Signed-off-by: Sebastien Luttringer --- rc.d | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rc.d') diff --git a/rc.d b/rc.d index 3c7fcb9..9aa5a65 100755 --- a/rc.d +++ b/rc.d @@ -42,6 +42,8 @@ case $1 in done ;; *) + # check min args count + (( $# < 2 )) && usage action=$1 shift # set same environment variables as init -- cgit v1.2.3