1 /* vi: set sw=4 ts=4: */
3 * raidautorun implementation for busybox
5 * Copyright (C) 2006 Bernhard Reutner-Fischer
7 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
11 //usage:#define raidautorun_trivial_usage
13 //usage:#define raidautorun_full_usage "\n\n"
14 //usage: "Tell the kernel to automatically search and start RAID arrays"
16 //usage:#define raidautorun_example_usage
17 //usage: "$ raidautorun /dev/md0"
21 #include <linux/major.h>
22 #include <linux/raid/md_u.h>
24 int raidautorun_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
25 int raidautorun_main(int argc UNUSED_PARAM, char **argv)
27 xioctl(xopen(single_argv(argv), O_RDONLY), RAID_AUTORUN, NULL);