summaryrefslogtreecommitdiff
path: root/rc.d
diff options
context:
space:
mode:
authorSebastien Luttringer <seblu@seblu.net>2011-05-31 08:27:18 +0200
committerSebastien Luttringer <seblu@seblu.net>2011-05-31 08:27:18 +0200
commit997f095bf69a4470189e1ccfc345f354899192d8 (patch)
treed13242b91d47fbd9e633ba48882f3b2577e0c998 /rc.d
parenta7627c6d0784ca169b14265744ce356a7d740f62 (diff)
rc.d: print usage if not enough argument
Signed-off-by: Sebastien Luttringer <seblu@seblu.net>
Diffstat (limited to 'rc.d')
-rwxr-xr-xrc.d2
1 files changed, 2 insertions, 0 deletions
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