summaryrefslogtreecommitdiff
path: root/miscutils/raidautorun.c
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils/raidautorun.c')
-rw-r--r--miscutils/raidautorun.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c
index c256304..e5bce9a 100644
--- a/miscutils/raidautorun.c
+++ b/miscutils/raidautorun.c
@@ -15,6 +15,9 @@
int raidautorun_main(int argc, char **argv)
{
+ if (argc != 2)
+ bb_show_usage();
+
if (ioctl(xopen(argv[1], O_RDONLY), RAID_AUTORUN, NULL) != 0) {
bb_perror_msg_and_die("ioctl");
}