diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-20 19:39:48 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-20 19:39:48 +0000 |
commit | c108ed549771d16a8335c1e72a7c6b3798395bac (patch) | |
tree | 757dd8f1e77e8b1838adb069b6009b934b90b92b /miscutils/raidautorun.c | |
parent | 456fa6c0b17b2ff465a34db031f667b3fcd4bf2e (diff) | |
download | busybox-w32-c108ed549771d16a8335c1e72a7c6b3798395bac.tar.gz busybox-w32-c108ed549771d16a8335c1e72a7c6b3798395bac.tar.bz2 busybox-w32-c108ed549771d16a8335c1e72a7c6b3798395bac.zip |
raidautorun: new applet, by:
Thomas Jarosch (email?) and
Bernhard Fischer <rep.nop@aon.at>
Diffstat (limited to 'miscutils/raidautorun.c')
-rw-r--r-- | miscutils/raidautorun.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c new file mode 100644 index 000000000..c25630494 --- /dev/null +++ b/miscutils/raidautorun.c | |||
@@ -0,0 +1,23 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
2 | /* | ||
3 | * raidautorun implementation for busybox | ||
4 | * | ||
5 | * Copyright (C) 2006 Bernhard Fischer | ||
6 | * | ||
7 | * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. | ||
8 | * | ||
9 | */ | ||
10 | |||
11 | #include "busybox.h" | ||
12 | |||
13 | #include <linux/major.h> | ||
14 | #include <linux/raid/md_u.h> | ||
15 | |||
16 | int raidautorun_main(int argc, char **argv) | ||
17 | { | ||
18 | if (ioctl(xopen(argv[1], O_RDONLY), RAID_AUTORUN, NULL) != 0) { | ||
19 | bb_perror_msg_and_die("ioctl"); | ||
20 | } | ||
21 | |||
22 | return EXIT_SUCCESS; | ||
23 | } | ||