[BusyBox] Patch to add quiet flag to mount/umount
Bastian Blank
waldi at debian.org
Fri Jul 2 21:30:04 UTC 2004
On Fri, Jul 02, 2004 at 03:08:51PM -0600, Erik Andersen wrote:
> --- applets/busybox.c 15 Mar 2004 08:28:15 -0000 1.145
> +++ applets/busybox.c 2 Jul 2004 21:08:07 -0000
> @@ -91,6 +91,15 @@
> }
> #endif
>
> +#ifdef CONFIG_FEATURE_SHUT_UP
+ int fd = open("/dev/null", O_RDWR);
+ dup2(fd, 0);
+ dup2(fd, 1);
+ dup2(fd, 2);
+ close(fd);
> +#endif
> +
> run_applet_by_name(bb_applet_name, argc, argv);
> bb_error_msg_and_die("applet not found");
> }
>
> -Erik
>
> --
> Erik B. Andersen http://codepoet-consulting.com/
> --This message was written using 73% post-consumer electrons--
> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox
--
Men will always be men -- no matter where they are.
-- Harry Mudd, "Mudd's Women", stardate 1329.8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.busybox.net/pipermail/busybox/attachments/20040702/e37ba713/attachment-0002.pgp
More information about the busybox
mailing list