diff options
| author | Eric Andersen <andersen@codepoet.org> | 2001-10-31 10:24:36 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 2001-10-31 10:24:36 +0000 |
| commit | 6cf47a79acfef8dbe4e651560f59200978b656b1 (patch) | |
| tree | 3ae009b33f74d131da1747d558ab357511136f7d | |
| parent | 2bc4dec7a15998fa37c03005a9612c7f22df4f7a (diff) | |
| download | busybox-w32-6cf47a79acfef8dbe4e651560f59200978b656b1.tar.gz busybox-w32-6cf47a79acfef8dbe4e651560f59200978b656b1.tar.bz2 busybox-w32-6cf47a79acfef8dbe4e651560f59200978b656b1.zip | |
Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
| -rw-r--r-- | AUTHORS | 3 | ||||
| -rw-r--r-- | Makefile | 2 | ||||
| -rw-r--r-- | applets/usage.h | 10 | ||||
| -rw-r--r-- | docs/busybox.sgml | 29 | ||||
| -rw-r--r-- | include/applets.h | 3 | ||||
| -rw-r--r-- | include/usage.h | 10 | ||||
| -rw-r--r-- | init/Makefile | 1 | ||||
| -rw-r--r-- | init/config.in | 2 |
8 files changed, 58 insertions, 2 deletions
| @@ -88,3 +88,6 @@ Charles P. Wright <cpwright@villagenet.com> | |||
| 88 | Enrique Zanardi <ezanardi@ull.es> | 88 | Enrique Zanardi <ezanardi@ull.es> |
| 89 | tarcat (since removed), loadkmap, various fixes, Debian maintenance | 89 | tarcat (since removed), loadkmap, various fixes, Debian maintenance |
| 90 | 90 | ||
| 91 | Emanuele Aina <emanuele.aina@tiscali.it> | ||
| 92 | run-parts | ||
| 93 | |||
| @@ -147,7 +147,7 @@ ifeq ($(strip $(DODEBUG)),true) | |||
| 147 | LDFLAGS += -Wl,-warn-common | 147 | LDFLAGS += -Wl,-warn-common |
| 148 | STRIPCMD = | 148 | STRIPCMD = |
| 149 | else | 149 | else |
| 150 | CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -D_GNU_SOURCE | 150 | CFLAGS += $(WARNINGS) $(OPTIMIZATION) -fomit-frame-pointer -mpreferred-stack-boundary=2 -D_GNU_SOURCE |
| 151 | LDFLAGS += -s -Wl,-warn-common | 151 | LDFLAGS += -s -Wl,-warn-common |
| 152 | STRIPCMD = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG) | 152 | STRIPCMD = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG) |
| 153 | endif | 153 | endif |
diff --git a/applets/usage.h b/applets/usage.h index 1de29666e..bbed44d0c 100644 --- a/applets/usage.h +++ b/applets/usage.h | |||
| @@ -660,6 +660,7 @@ | |||
| 660 | "\t-s\t\tShort\n" \ | 660 | "\t-s\t\tShort\n" \ |
| 661 | "\t-i\t\tAddresses for the hostname\n" \ | 661 | "\t-i\t\tAddresses for the hostname\n" \ |
| 662 | "\t-d\t\tDNS domain name\n" \ | 662 | "\t-d\t\tDNS domain name\n" \ |
| 663 | "\t-f\t\tFully qualified domain name\n" \ | ||
| 663 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" | 664 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" |
| 664 | #define hostname_example_usage \ | 665 | #define hostname_example_usage \ |
| 665 | "$ hostname\n" \ | 666 | "$ hostname\n" \ |
| @@ -1382,6 +1383,15 @@ | |||
| 1382 | #define rpm2cpio_full_usage \ | 1383 | #define rpm2cpio_full_usage \ |
| 1383 | "Outputs a cpio archive of the rpm file." | 1384 | "Outputs a cpio archive of the rpm file." |
| 1384 | 1385 | ||
| 1386 | #define run_parts_trivial_usage \ | ||
| 1387 | "[-t] [-a ARG] [-u MASK] DIRECTORY" | ||
| 1388 | #define run_parts_full_usage \ | ||
| 1389 | "Run a bunch of scripts in a directory.\n\n" \ | ||
| 1390 | "Options:\n" \ | ||
| 1391 | "\t-t\t\tTest only what file will be executed, without execute them.\n" \ | ||
| 1392 | "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \ | ||
| 1393 | "\t-u MASK\tSet the umask to MASK before executing every program." | ||
| 1394 | |||
| 1385 | #define sed_trivial_usage \ | 1395 | #define sed_trivial_usage \ |
| 1386 | "[-nef] pattern [files...]" | 1396 | "[-nef] pattern [files...]" |
| 1387 | #define sed_full_usage \ | 1397 | #define sed_full_usage \ |
diff --git a/docs/busybox.sgml b/docs/busybox.sgml index 2d372506b..34559dab4 100644 --- a/docs/busybox.sgml +++ b/docs/busybox.sgml | |||
| @@ -144,7 +144,7 @@ | |||
| 144 | loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, | 144 | loadacm, loadfont, loadkmap, logger, logname, ls, lsmod, |
| 145 | makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, | 145 | makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp, |
| 146 | more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps, | 146 | more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps, |
| 147 | pwd, reboot, renice, reset, rm, rmdir, rmmod, sed, setkeycodes, sh, sleep, | 147 | pwd, reboot, renice, reset, rm, rmdir, rmmod, run-parts, sed, setkeycodes, sh, sleep, |
| 148 | sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, | 148 | sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet, |
| 149 | test, touch, tr, true, tty, umount, uname, uniq, update, | 149 | test, touch, tr, true, tty, umount, uname, uniq, update, |
| 150 | uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, | 150 | uptime, usleep, uudecode, uuencode, wc, which, whoami, yes, |
| @@ -2799,6 +2799,33 @@ | |||
| 2799 | </para> | 2799 | </para> |
| 2800 | </sect1> | 2800 | </sect1> |
| 2801 | 2801 | ||
| 2802 | <sect1 id="run-parts"> | ||
| 2803 | <title>run-parts</title> | ||
| 2804 | |||
| 2805 | <para> | ||
| 2806 | Usage: run-parts [-t] [-a ARG] [-u MASK] DIRECTORY | ||
| 2807 | </para> | ||
| 2808 | |||
| 2809 | <para> | ||
| 2810 | Run a bunch of scripts in a directory. | ||
| 2811 | </para> | ||
| 2812 | |||
| 2813 | <para> | ||
| 2814 | Options: | ||
| 2815 | </para> | ||
| 2816 | |||
| 2817 | <para> | ||
| 2818 | <screen> | ||
| 2819 | -t Test only. It only print the file to be executed, | ||
| 2820 | without execute them. | ||
| 2821 | -a ARG Pass ARG as an a argument to the programs executed. | ||
| 2822 | -u MASK Set the umask to MASK before executing the programs. | ||
| 2823 | </screen> | ||
| 2824 | </para> | ||
| 2825 | </sect1> | ||
| 2826 | |||
| 2827 | |||
| 2828 | |||
| 2802 | <sect1 id="sed"> | 2829 | <sect1 id="sed"> |
| 2803 | <title>sed</title> | 2830 | <title>sed</title> |
| 2804 | 2831 | ||
diff --git a/include/applets.h b/include/applets.h index effbb5233..b0536ac01 100644 --- a/include/applets.h +++ b/include/applets.h | |||
| @@ -365,6 +365,9 @@ | |||
| 365 | #ifdef CONFIG_RPM2CPIO | 365 | #ifdef CONFIG_RPM2CPIO |
| 366 | APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN) | 366 | APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN) |
| 367 | #endif | 367 | #endif |
| 368 | #ifdef CONFIG_RUN_PARTS | ||
| 369 | APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, run_parts) | ||
| 370 | #endif | ||
| 368 | #ifdef CONFIG_SED | 371 | #ifdef CONFIG_SED |
| 369 | APPLET(sed, sed_main, _BB_DIR_BIN) | 372 | APPLET(sed, sed_main, _BB_DIR_BIN) |
| 370 | #endif | 373 | #endif |
diff --git a/include/usage.h b/include/usage.h index 1de29666e..bbed44d0c 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -660,6 +660,7 @@ | |||
| 660 | "\t-s\t\tShort\n" \ | 660 | "\t-s\t\tShort\n" \ |
| 661 | "\t-i\t\tAddresses for the hostname\n" \ | 661 | "\t-i\t\tAddresses for the hostname\n" \ |
| 662 | "\t-d\t\tDNS domain name\n" \ | 662 | "\t-d\t\tDNS domain name\n" \ |
| 663 | "\t-f\t\tFully qualified domain name\n" \ | ||
| 663 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" | 664 | "\t-F, --file FILE\tUse the contents of FILE to specify the hostname" |
| 664 | #define hostname_example_usage \ | 665 | #define hostname_example_usage \ |
| 665 | "$ hostname\n" \ | 666 | "$ hostname\n" \ |
| @@ -1382,6 +1383,15 @@ | |||
| 1382 | #define rpm2cpio_full_usage \ | 1383 | #define rpm2cpio_full_usage \ |
| 1383 | "Outputs a cpio archive of the rpm file." | 1384 | "Outputs a cpio archive of the rpm file." |
| 1384 | 1385 | ||
| 1386 | #define run_parts_trivial_usage \ | ||
| 1387 | "[-t] [-a ARG] [-u MASK] DIRECTORY" | ||
| 1388 | #define run_parts_full_usage \ | ||
| 1389 | "Run a bunch of scripts in a directory.\n\n" \ | ||
| 1390 | "Options:\n" \ | ||
| 1391 | "\t-t\t\tTest only what file will be executed, without execute them.\n" \ | ||
| 1392 | "\t-a ARG\tPass ARG as an argument for every program invoked.\n" \ | ||
| 1393 | "\t-u MASK\tSet the umask to MASK before executing every program." | ||
| 1394 | |||
| 1385 | #define sed_trivial_usage \ | 1395 | #define sed_trivial_usage \ |
| 1386 | "[-nef] pattern [files...]" | 1396 | "[-nef] pattern [files...]" |
| 1387 | #define sed_full_usage \ | 1397 | #define sed_full_usage \ |
diff --git a/init/Makefile b/init/Makefile index 472fb02b1..76f49794d 100644 --- a/init/Makefile +++ b/init/Makefile | |||
| @@ -29,6 +29,7 @@ obj-$(CONFIG_INIT) += init.o | |||
| 29 | obj-$(CONFIG_POWEROFF) += poweroff.o | 29 | obj-$(CONFIG_POWEROFF) += poweroff.o |
| 30 | obj-$(CONFIG_REBOOT) += reboot.o | 30 | obj-$(CONFIG_REBOOT) += reboot.o |
| 31 | obj-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o | 31 | obj-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o |
| 32 | obj-$(CONFIG_RUN_PARTS) += run_parts.o | ||
| 32 | 33 | ||
| 33 | 34 | ||
| 34 | # Hand off to toplevel Rules.mak | 35 | # Hand off to toplevel Rules.mak |
diff --git a/init/config.in b/init/config.in index 1d4760c2c..1174e21d5 100644 --- a/init/config.in +++ b/init/config.in | |||
| @@ -21,5 +21,7 @@ if [ "$CONFIG_INIT" = "y" ]; then | |||
| 21 | bool 'start-stop-daemon' CONFIG_START_STOP_DAEMON | 21 | bool 'start-stop-daemon' CONFIG_START_STOP_DAEMON |
| 22 | fi | 22 | fi |
| 23 | 23 | ||
| 24 | bool 'run-parts' CONFIG_RUN_PARTS | ||
| 25 | |||
| 24 | endmenu | 26 | endmenu |
| 25 | 27 | ||
