Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
authorEric Andersen <andersen@codepoet.org>
Wed, 31 Oct 2001 10:24:36 +0000 (10:24 -0000)
committerEric Andersen <andersen@codepoet.org>
Wed, 31 Oct 2001 10:24:36 +0000 (10:24 -0000)
AUTHORS
Makefile
applets/usage.h
docs/busybox.sgml
include/applets.h
include/usage.h
init/Makefile
init/config.in

diff --git a/AUTHORS b/AUTHORS
index 5d77149..811a583 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -88,3 +88,6 @@ Charles P. Wright <cpwright@villagenet.com>
 Enrique Zanardi <ezanardi@ull.es>
     tarcat (since removed), loadkmap, various fixes, Debian maintenance
 
+Emanuele Aina <emanuele.aina@tiscali.it>
+       run-parts
+
index 0ff3aff..acd527c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -147,7 +147,7 @@ ifeq ($(strip $(DODEBUG)),true)
     LDFLAGS += -Wl,-warn-common
     STRIPCMD    =
 else
-    CFLAGS  += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE
+    CFLAGS  += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -mpreferred-stack-boundary=2 -D_GNU_SOURCE
     LDFLAGS += -s -Wl,-warn-common
     STRIPCMD    = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG)
 endif
index 1de2966..bbed44d 100644 (file)
        "\t-s\t\tShort\n" \
        "\t-i\t\tAddresses for the hostname\n" \
        "\t-d\t\tDNS domain name\n" \
+       "\t-f\t\tFully qualified domain name\n" \
        "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
 #define hostname_example_usage \
        "$ hostname\n" \
 #define rpm2cpio_full_usage \
        "Outputs a cpio archive of the rpm file."
 
+#define run_parts_trivial_usage \
+       "[-t] [-a ARG] [-u MASK] DIRECTORY"
+#define run_parts_full_usage \
+       "Run a bunch of scripts in a directory.\n\n" \
+       "Options:\n" \
+       "\t-t\t\tTest only what file will be executed, without execute them.\n" \
+       "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \
+       "\t-u MASK\tSet the umask to MASK before executing every program."
+
 #define sed_trivial_usage \
        "[-nef] pattern [files...]"
 #define sed_full_usage \
index 2d37250..34559da 100644 (file)
                loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
                makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
                more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps,
-               pwd, reboot, renice, reset, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep,
+               pwd, reboot, renice, reset, rm, rmdir, rmmod, run-parts, sed, setkeycodes, sh, sleep,
                sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
                test, touch, tr, true, tty, umount, uname, uniq, update,
                uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
                </para>
        </sect1>
 
+    <sect1 id="run-parts">
+       <title>run-parts</title>
+       
+               <para>
+               Usage: run-parts [-t] [-a ARG] [-u MASK] DIRECTORY
+               </para>
+       
+               <para>
+               Run a bunch of scripts in a directory.
+               </para>
+       
+               <para>
+               Options:
+               </para>
+       
+               <para>
+               <screen>
+                       -t       Test only. It only print the file to be executed,
+                       without execute them.
+                       -a ARG   Pass ARG as an a argument to the programs executed.
+                       -u MASK  Set the umask to MASK before executing the programs.
+               </screen>
+               </para>
+       </sect1>
+       
+
+       
        <sect1 id="sed">
            <title>sed</title>
 
index effbb52..b0536ac 100644 (file)
 #ifdef CONFIG_RPM2CPIO
        APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
 #endif
+#ifdef CONFIG_RUN_PARTS
+       APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, run_parts)
+#endif 
 #ifdef CONFIG_SED
        APPLET(sed, sed_main, _BB_DIR_BIN)
 #endif
index 1de2966..bbed44d 100644 (file)
        "\t-s\t\tShort\n" \
        "\t-i\t\tAddresses for the hostname\n" \
        "\t-d\t\tDNS domain name\n" \
+       "\t-f\t\tFully qualified domain name\n" \
        "\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
 #define hostname_example_usage \
        "$ hostname\n" \
 #define rpm2cpio_full_usage \
        "Outputs a cpio archive of the rpm file."
 
+#define run_parts_trivial_usage \
+       "[-t] [-a ARG] [-u MASK] DIRECTORY"
+#define run_parts_full_usage \
+       "Run a bunch of scripts in a directory.\n\n" \
+       "Options:\n" \
+       "\t-t\t\tTest only what file will be executed, without execute them.\n" \
+       "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \
+       "\t-u MASK\tSet the umask to MASK before executing every program."
+
 #define sed_trivial_usage \
        "[-nef] pattern [files...]"
 #define sed_full_usage \
index 472fb02..76f4979 100644 (file)
@@ -29,6 +29,7 @@ obj-$(CONFIG_INIT)            += init.o
 obj-$(CONFIG_POWEROFF)         += poweroff.o
 obj-$(CONFIG_REBOOT)           += reboot.o
 obj-$(CONFIG_START_STOP_DAEMON)        += start_stop_daemon.o
+obj-$(CONFIG_RUN_PARTS)                += run_parts.o
 
 
 # Hand off to toplevel Rules.mak
index 1d4760c..1174e21 100644 (file)
@@ -21,5 +21,7 @@ if [ "$CONFIG_INIT" = "y" ]; then
     bool 'start-stop-daemon'       CONFIG_START_STOP_DAEMON
 fi
 
+bool 'run-parts'           CONFIG_RUN_PARTS
+       
 endmenu