Run parts applet by Emanuele Aina <faina.mail@tiscalinet.it>
This commit is contained in:
parent
2bc4dec7a1
commit
6cf47a79ac
3
AUTHORS
3
AUTHORS
@ -88,3 +88,6 @@ Charles P. Wright <cpwright@villagenet.com>
|
|||||||
Enrique Zanardi <ezanardi@ull.es>
|
Enrique Zanardi <ezanardi@ull.es>
|
||||||
tarcat (since removed), loadkmap, various fixes, Debian maintenance
|
tarcat (since removed), loadkmap, various fixes, Debian maintenance
|
||||||
|
|
||||||
|
Emanuele Aina <emanuele.aina@tiscali.it>
|
||||||
|
run-parts
|
||||||
|
|
||||||
|
2
Makefile
2
Makefile
@ -147,7 +147,7 @@ ifeq ($(strip $(DODEBUG)),true)
|
|||||||
LDFLAGS += -Wl,-warn-common
|
LDFLAGS += -Wl,-warn-common
|
||||||
STRIPCMD =
|
STRIPCMD =
|
||||||
else
|
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
|
LDFLAGS += -s -Wl,-warn-common
|
||||||
STRIPCMD = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG)
|
STRIPCMD = $(STRIP) --remove-section=.note --remove-section=.comment $(PROG)
|
||||||
endif
|
endif
|
||||||
|
@ -660,6 +660,7 @@
|
|||||||
"\t-s\t\tShort\n" \
|
"\t-s\t\tShort\n" \
|
||||||
"\t-i\t\tAddresses for the hostname\n" \
|
"\t-i\t\tAddresses for the hostname\n" \
|
||||||
"\t-d\t\tDNS domain name\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"
|
"\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
|
||||||
#define hostname_example_usage \
|
#define hostname_example_usage \
|
||||||
"$ hostname\n" \
|
"$ hostname\n" \
|
||||||
@ -1382,6 +1383,15 @@
|
|||||||
#define rpm2cpio_full_usage \
|
#define rpm2cpio_full_usage \
|
||||||
"Outputs a cpio archive of the rpm file."
|
"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 \
|
#define sed_trivial_usage \
|
||||||
"[-nef] pattern [files...]"
|
"[-nef] pattern [files...]"
|
||||||
#define sed_full_usage \
|
#define sed_full_usage \
|
||||||
|
@ -144,7 +144,7 @@
|
|||||||
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
loadacm, loadfont, loadkmap, logger, logname, ls, lsmod,
|
||||||
makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
|
makedevs, mkdir, mkfifo, mkfs.minix, mknod, mkswap, mktemp,
|
||||||
more, mount, mt, mv, nc, nslookup, ping, poweroff, printf, ps,
|
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,
|
sort, swapoff, swapon, sync, syslogd, tail, tar, tee, telnet,
|
||||||
test, touch, tr, true, tty, umount, uname, uniq, update,
|
test, touch, tr, true, tty, umount, uname, uniq, update,
|
||||||
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
|
uptime, usleep, uudecode, uuencode, wc, which, whoami, yes,
|
||||||
@ -2799,6 +2799,33 @@
|
|||||||
</para>
|
</para>
|
||||||
</sect1>
|
</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">
|
<sect1 id="sed">
|
||||||
<title>sed</title>
|
<title>sed</title>
|
||||||
|
|
||||||
|
@ -365,6 +365,9 @@
|
|||||||
#ifdef CONFIG_RPM2CPIO
|
#ifdef CONFIG_RPM2CPIO
|
||||||
APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
|
APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef CONFIG_RUN_PARTS
|
||||||
|
APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, run_parts)
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_SED
|
#ifdef CONFIG_SED
|
||||||
APPLET(sed, sed_main, _BB_DIR_BIN)
|
APPLET(sed, sed_main, _BB_DIR_BIN)
|
||||||
#endif
|
#endif
|
||||||
|
@ -660,6 +660,7 @@
|
|||||||
"\t-s\t\tShort\n" \
|
"\t-s\t\tShort\n" \
|
||||||
"\t-i\t\tAddresses for the hostname\n" \
|
"\t-i\t\tAddresses for the hostname\n" \
|
||||||
"\t-d\t\tDNS domain name\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"
|
"\t-F, --file FILE\tUse the contents of FILE to specify the hostname"
|
||||||
#define hostname_example_usage \
|
#define hostname_example_usage \
|
||||||
"$ hostname\n" \
|
"$ hostname\n" \
|
||||||
@ -1382,6 +1383,15 @@
|
|||||||
#define rpm2cpio_full_usage \
|
#define rpm2cpio_full_usage \
|
||||||
"Outputs a cpio archive of the rpm file."
|
"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 \
|
#define sed_trivial_usage \
|
||||||
"[-nef] pattern [files...]"
|
"[-nef] pattern [files...]"
|
||||||
#define sed_full_usage \
|
#define sed_full_usage \
|
||||||
|
@ -29,6 +29,7 @@ obj-$(CONFIG_INIT) += init.o
|
|||||||
obj-$(CONFIG_POWEROFF) += poweroff.o
|
obj-$(CONFIG_POWEROFF) += poweroff.o
|
||||||
obj-$(CONFIG_REBOOT) += reboot.o
|
obj-$(CONFIG_REBOOT) += reboot.o
|
||||||
obj-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
|
obj-$(CONFIG_START_STOP_DAEMON) += start_stop_daemon.o
|
||||||
|
obj-$(CONFIG_RUN_PARTS) += run_parts.o
|
||||||
|
|
||||||
|
|
||||||
# Hand off to toplevel Rules.mak
|
# Hand off to toplevel Rules.mak
|
||||||
|
@ -21,5 +21,7 @@ if [ "$CONFIG_INIT" = "y" ]; then
|
|||||||
bool 'start-stop-daemon' CONFIG_START_STOP_DAEMON
|
bool 'start-stop-daemon' CONFIG_START_STOP_DAEMON
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
bool 'run-parts' CONFIG_RUN_PARTS
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user