From c108ed549771d16a8335c1e72a7c6b3798395bac Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 20 Oct 2006 19:39:48 +0000 Subject: raidautorun: new applet, by: Thomas Jarosch (email?) and Bernhard Fischer --- miscutils/raidautorun.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 miscutils/raidautorun.c (limited to 'miscutils/raidautorun.c') 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 @@ +/* vi: set sw=4 ts=4: */ +/* + * raidautorun implementation for busybox + * + * Copyright (C) 2006 Bernhard Fischer + * + * Licensed under the GPL v2 or later, see the file LICENSE in this tarball. + * + */ + +#include "busybox.h" + +#include +#include + +int raidautorun_main(int argc, char **argv) +{ + if (ioctl(xopen(argv[1], O_RDONLY), RAID_AUTORUN, NULL) != 0) { + bb_perror_msg_and_die("ioctl"); + } + + return EXIT_SUCCESS; +} -- cgit v1.2.3