aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:54:17 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2016-11-22 23:54:17 +0100
commitf88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541 (patch)
tree6e7fd8f8f547fcf01bb9d55da2ace429ab3b53f6
parentfb4da167114e96d7f20ef97474f976f8ffa604e7 (diff)
downloadbusybox-w32-f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541.tar.gz
busybox-w32-f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541.tar.bz2
busybox-w32-f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541.zip
Convert all miscutils/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--include/applets.src.h37
-rw-r--r--miscutils/Kbuild.src40
-rw-r--r--miscutils/adjtimex.c4
-rw-r--r--miscutils/bbconfig.c4
-rw-r--r--miscutils/beep.c4
-rw-r--r--miscutils/chat.c4
-rw-r--r--miscutils/chrt.c4
-rw-r--r--miscutils/crontab.c5
-rw-r--r--miscutils/dc.c4
-rw-r--r--miscutils/devfsd.c4
-rw-r--r--miscutils/devmem.c4
-rw-r--r--miscutils/eject.c4
-rw-r--r--miscutils/fbsplash.c4
-rw-r--r--miscutils/flash_eraseall.c4
-rw-r--r--miscutils/flash_lock_unlock.c6
-rw-r--r--miscutils/flashcp.c4
-rw-r--r--miscutils/hdparm.c4
-rw-r--r--miscutils/inotifyd.c4
-rw-r--r--miscutils/ionice.c4
-rw-r--r--miscutils/last.c8
-rw-r--r--miscutils/less.c4
-rw-r--r--miscutils/makedevs.c4
-rw-r--r--miscutils/man.c4
-rw-r--r--miscutils/microcom.c4
-rw-r--r--miscutils/mountpoint.c4
-rw-r--r--miscutils/mt.c4
-rw-r--r--miscutils/raidautorun.c4
-rw-r--r--miscutils/readahead.c4
-rw-r--r--miscutils/runlevel.c4
-rw-r--r--miscutils/rx.c4
-rw-r--r--miscutils/setsid.c4
-rw-r--r--miscutils/strings.c4
-rw-r--r--miscutils/time.c4
-rw-r--r--miscutils/timeout.c4
-rw-r--r--miscutils/ttysize.c4
-rw-r--r--miscutils/volname.c4
-rw-r--r--miscutils/watchdog.c4
37 files changed, 147 insertions, 77 deletions
diff --git a/include/applets.src.h b/include/applets.src.h
index f834d9040..5eaa5cbb8 100644
--- a/include/applets.src.h
+++ b/include/applets.src.h
@@ -76,37 +76,27 @@ INSERT
76IF_TEST(APPLET_NOFORK([, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) 76IF_TEST(APPLET_NOFORK([, test, BB_DIR_USR_BIN, BB_SUID_DROP, test))
77IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) 77IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test))
78IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP)) 78IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP))
79IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP))
80IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP)) 79IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP))
81IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP)) 80IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP))
82IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename)) 81IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename))
83IF_BBCONFIG(APPLET(bbconfig, BB_DIR_BIN, BB_SUID_DROP))
84IF_BEEP(APPLET(beep, BB_DIR_USR_BIN, BB_SUID_DROP))
85IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP)) 82IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP))
86IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP)) 83IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP))
87IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP)) 84IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP))
88IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat)) 85IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat))
89IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP)) 86IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP))
90IF_CHAT(APPLET(chat, BB_DIR_USR_SBIN, BB_SUID_DROP))
91IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP)) 87IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP))
92IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp)) 88IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp))
93IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) 89IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod))
94IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) 90IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown))
95IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) 91IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP))
96IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP))
97IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) 92IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP))
98IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum)) 93IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum))
99IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP)) 94IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP))
100IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP)) 95IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP))
101IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp)) 96IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
102/* Needs to be run by root or be suid root - needs to change /var/spool/cron* files: */
103IF_CRONTAB(APPLET(crontab, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
104IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut)) 97IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut))
105IF_DC(APPLET(dc, BB_DIR_USR_BIN, BB_SUID_DROP))
106IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd)) 98IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd))
107IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP)) 99IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP))
108IF_DEVFSD(APPLET(devfsd, BB_DIR_SBIN, BB_SUID_DROP))
109IF_DEVMEM(APPLET(devmem, BB_DIR_SBIN, BB_SUID_DROP))
110IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP)) 100IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP))
111IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP)) 101IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP))
112IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname)) 102IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname))
@@ -119,7 +109,6 @@ IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP))
119//IF_E2FSCK(APPLET(e2fsck, BB_DIR_SBIN, BB_SUID_DROP)) 109//IF_E2FSCK(APPLET(e2fsck, BB_DIR_SBIN, BB_SUID_DROP))
120//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label)) 110//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label))
121IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) 111IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo))
122IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP))
123IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) 112IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env))
124IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) 113IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake))
125IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) 114IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP))
@@ -127,17 +116,12 @@ IF_EXPR(APPLET(expr, BB_DIR_USR_BIN, BB_SUID_DROP))
127IF_FAKEIDENTD(APPLET(fakeidentd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 116IF_FAKEIDENTD(APPLET(fakeidentd, BB_DIR_USR_SBIN, BB_SUID_DROP))
128IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false)) 117IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false))
129IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP)) 118IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP))
130IF_FBSPLASH(APPLET(fbsplash, BB_DIR_SBIN, BB_SUID_DROP))
131IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush)) 119IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush))
132IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP)) 120IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP))
133IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP)) 121IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP))
134IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP)) 122IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP))
135/* Benefits from suid root: better access to /dev/BLOCKDEVs: */ 123/* Benefits from suid root: better access to /dev/BLOCKDEVs: */
136IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE)) 124IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE))
137IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP))
138IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_lock))
139IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_unlock))
140IF_FLASHCP(APPLET(flashcp, BB_DIR_USR_SBIN, BB_SUID_DROP))
141IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP)) 125IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP))
142IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold)) 126IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold))
143IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP)) 127IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP))
@@ -154,7 +138,6 @@ IF_GETENFORCE(APPLET(getenforce, BB_DIR_USR_SBIN, BB_SUID_DROP))
154IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP)) 138IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP))
155IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) 139IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
156IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd)) 140IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd))
157IF_HDPARM(APPLET(hdparm, BB_DIR_SBIN, BB_SUID_DROP))
158IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head)) 141IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head))
159IF_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hexdump)) 142IF_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hexdump))
160IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 143IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
@@ -163,9 +146,7 @@ IF_IFCONFIG(APPLET(ifconfig, BB_DIR_SBIN, BB_SUID_DROP))
163IF_IFENSLAVE(APPLET(ifenslave, BB_DIR_SBIN, BB_SUID_DROP)) 146IF_IFENSLAVE(APPLET(ifenslave, BB_DIR_SBIN, BB_SUID_DROP))
164IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 147IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP))
165IF_INETD(APPLET(inetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 148IF_INETD(APPLET(inetd, BB_DIR_USR_SBIN, BB_SUID_DROP))
166IF_INOTIFYD(APPLET(inotifyd, BB_DIR_SBIN, BB_SUID_DROP))
167IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP)) 149IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP))
168IF_IONICE(APPLET(ionice, BB_DIR_BIN, BB_SUID_DROP))
169#if ENABLE_FEATURE_IP_ADDRESS \ 150#if ENABLE_FEATURE_IP_ADDRESS \
170 || ENABLE_FEATURE_IP_ROUTE \ 151 || ENABLE_FEATURE_IP_ROUTE \
171 || ENABLE_FEATURE_IP_LINK \ 152 || ENABLE_FEATURE_IP_LINK \
@@ -185,9 +166,7 @@ IF_KBD_MODE(APPLET(kbd_mode, BB_DIR_BIN, BB_SUID_DROP))
185IF_KILL(APPLET(kill, BB_DIR_BIN, BB_SUID_DROP)) 166IF_KILL(APPLET(kill, BB_DIR_BIN, BB_SUID_DROP))
186IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall)) 167IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall))
187IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5)) 168IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5))
188IF_LAST(APPLET(last, BB_DIR_USR_BIN, BB_SUID_DROP))
189//IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length)) 169//IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length))
190IF_LESS(APPLET(less, BB_DIR_USR_BIN, BB_SUID_DROP))
191IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln)) 170IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln))
192IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP)) 171IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP))
193IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP)) 172IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
@@ -197,11 +176,8 @@ IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
197IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) 176IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
198IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) 177IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP))
199IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) 178IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP))
200IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP))
201IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP)) 179IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP))
202IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP))
203IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) 180IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP))
204IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP))
205IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) 181IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir))
206IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo)) 182IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo))
207IF_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, BB_DIR_SBIN, BB_SUID_DROP, mkfs_minix)) 183IF_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, BB_DIR_SBIN, BB_SUID_DROP, mkfs_minix))
@@ -214,8 +190,6 @@ IF_MORE(APPLET(more, BB_DIR_BIN, BB_SUID_DROP))
214 * for viewing mount table. 190 * for viewing mount table.
215 * Therefore we use BB_SUID_MAYBE instead of BB_SUID_REQUIRE: */ 191 * Therefore we use BB_SUID_MAYBE instead of BB_SUID_REQUIRE: */
216IF_MOUNT(APPLET(mount, BB_DIR_BIN, IF_DESKTOP(BB_SUID_MAYBE) IF_NOT_DESKTOP(BB_SUID_DROP))) 192IF_MOUNT(APPLET(mount, BB_DIR_BIN, IF_DESKTOP(BB_SUID_MAYBE) IF_NOT_DESKTOP(BB_SUID_DROP)))
217IF_MOUNTPOINT(APPLET(mountpoint, BB_DIR_BIN, BB_SUID_DROP))
218IF_MT(APPLET(mt, BB_DIR_BIN, BB_SUID_DROP))
219IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP)) 193IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP))
220IF_NAMEIF(APPLET(nameif, BB_DIR_SBIN, BB_SUID_DROP)) 194IF_NAMEIF(APPLET(nameif, BB_DIR_SBIN, BB_SUID_DROP))
221IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP)) 195IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP))
@@ -237,10 +211,8 @@ IF_PRINTF(APPLET_NOFORK(printf, printf, BB_DIR_USR_BIN, BB_SUID_DROP, printf))
237IF_PS(APPLET(ps, BB_DIR_BIN, BB_SUID_DROP)) 211IF_PS(APPLET(ps, BB_DIR_BIN, BB_SUID_DROP))
238IF_PSCAN(APPLET(pscan, BB_DIR_USR_BIN, BB_SUID_DROP)) 212IF_PSCAN(APPLET(pscan, BB_DIR_USR_BIN, BB_SUID_DROP))
239IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd)) 213IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd))
240IF_RAIDAUTORUN(APPLET(raidautorun, BB_DIR_SBIN, BB_SUID_DROP))
241IF_RDATE(APPLET(rdate, BB_DIR_USR_SBIN, BB_SUID_DROP)) 214IF_RDATE(APPLET(rdate, BB_DIR_USR_SBIN, BB_SUID_DROP))
242IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP)) 215IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP))
243IF_READAHEAD(APPLET(readahead, BB_DIR_USR_SBIN, BB_SUID_DROP))
244IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP)) 216IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP))
245IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP)) 217IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP))
246IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP)) 218IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP))
@@ -254,8 +226,6 @@ IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir))
254IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) 226IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP))
255IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) 227IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP))
256IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) 228IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP))
257IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP))
258IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
259IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) 229IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP))
260IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) 230IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP))
261IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP)) 231IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
@@ -269,7 +239,6 @@ IF_SETFONT(APPLET(setfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
269IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP)) 239IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP))
270IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) 240IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP))
271IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) 241IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
272IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP))
273IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP)) 242IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP))
274IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP)) 243IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP))
275/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */ 244/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */
@@ -277,7 +246,6 @@ IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP))
277IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) 246IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort))
278IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) 247IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP))
279IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP)) 248IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP))
280IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP))
281IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) 249IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP))
282IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) 250IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP))
283IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) 251IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP))
@@ -294,8 +262,6 @@ IF_TEST(APPLET_NOFORK(test, test, BB_DIR_USR_BIN, BB_SUID_DROP, test))
294IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP)) 262IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP))
295IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 263IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
296#endif 264#endif
297IF_TIME(APPLET(time, BB_DIR_USR_BIN, BB_SUID_DROP))
298IF_TIMEOUT(APPLET(timeout, BB_DIR_USR_BIN, BB_SUID_DROP))
299IF_TOP(APPLET(top, BB_DIR_USR_BIN, BB_SUID_DROP)) 265IF_TOP(APPLET(top, BB_DIR_USR_BIN, BB_SUID_DROP))
300IF_TR(APPLET(tr, BB_DIR_USR_BIN, BB_SUID_DROP)) 266IF_TR(APPLET(tr, BB_DIR_USR_BIN, BB_SUID_DROP))
301/* Needs socket(AF_INET, SOCK_RAW, IPPROTO_ICMP), therefore BB_SUID_MAYBE: */ 267/* Needs socket(AF_INET, SOCK_RAW, IPPROTO_ICMP), therefore BB_SUID_MAYBE: */
@@ -303,7 +269,6 @@ IF_TRACEROUTE(APPLET(traceroute, BB_DIR_USR_BIN, BB_SUID_MAYBE))
303IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE)) 269IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE))
304IF_TRUE(APPLET_NOFORK(true, true, BB_DIR_BIN, BB_SUID_DROP, true)) 270IF_TRUE(APPLET_NOFORK(true, true, BB_DIR_BIN, BB_SUID_DROP, true))
305IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP)) 271IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP))
306IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP))
307IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP)) 272IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP))
308IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP)) 273IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP))
309IF_UDHCPD(APPLET(udhcpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) 274IF_UDHCPD(APPLET(udhcpd, BB_DIR_USR_SBIN, BB_SUID_DROP))
@@ -318,9 +283,7 @@ IF_USLEEP(APPLET_NOFORK(usleep, usleep, BB_DIR_BIN, BB_SUID_DROP, usleep))
318IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP)) 283IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP))
319IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP)) 284IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP))
320IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP)) 285IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP))
321IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP))
322IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) 286IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP))
323IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP))
324IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) 287IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP))
325IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami)) 288IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami))
326IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes)) 289IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes))
diff --git a/miscutils/Kbuild.src b/miscutils/Kbuild.src
index 503f54904..60848ffc1 100644
--- a/miscutils/Kbuild.src
+++ b/miscutils/Kbuild.src
@@ -7,45 +7,5 @@
7lib-y:= 7lib-y:=
8 8
9INSERT 9INSERT
10lib-$(CONFIG_ADJTIMEX) += adjtimex.o
11lib-$(CONFIG_BBCONFIG) += bbconfig.o
12lib-$(CONFIG_BEEP) += beep.o
13lib-$(CONFIG_CHAT) += chat.o
14lib-$(CONFIG_CHRT) += chrt.o
15lib-$(CONFIG_CRONTAB) += crontab.o
16lib-$(CONFIG_DC) += dc.o
17lib-$(CONFIG_DEVFSD) += devfsd.o
18lib-$(CONFIG_DEVMEM) += devmem.o
19lib-$(CONFIG_EJECT) += eject.o
20lib-$(CONFIG_FBSPLASH) += fbsplash.o
21lib-$(CONFIG_FLASHCP) += flashcp.o
22lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o
23lib-$(CONFIG_FLASH_LOCK) += flash_lock_unlock.o
24lib-$(CONFIG_FLASH_UNLOCK) += flash_lock_unlock.o
25lib-$(CONFIG_IONICE) += ionice.o
26lib-$(CONFIG_HDPARM) += hdparm.o
27lib-$(CONFIG_INOTIFYD) += inotifyd.o
28 10
29ifeq ($(CONFIG_FEATURE_LAST_FANCY),y)
30lib-$(CONFIG_FEATURE_LAST_FANCY) += last_fancy.o
31else
32lib-$(CONFIG_LAST) += last.o
33endif
34 11
35lib-$(CONFIG_LESS) += less.o
36lib-$(CONFIG_MAKEDEVS) += makedevs.o
37lib-$(CONFIG_MAN) += man.o
38lib-$(CONFIG_MICROCOM) += microcom.o
39lib-$(CONFIG_MOUNTPOINT) += mountpoint.o
40lib-$(CONFIG_MT) += mt.o
41lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o
42lib-$(CONFIG_READAHEAD) += readahead.o
43lib-$(CONFIG_RUNLEVEL) += runlevel.o
44lib-$(CONFIG_RX) += rx.o
45lib-$(CONFIG_SETSID) += setsid.o
46lib-$(CONFIG_STRINGS) += strings.o
47lib-$(CONFIG_TIME) += time.o
48lib-$(CONFIG_TIMEOUT) += timeout.o
49lib-$(CONFIG_TTYSIZE) += ttysize.o
50lib-$(CONFIG_VOLNAME) += volname.o
51lib-$(CONFIG_WATCHDOG) += watchdog.o
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c
index f9d7c949d..6355cc1ef 100644
--- a/miscutils/adjtimex.c
+++ b/miscutils/adjtimex.c
@@ -18,6 +18,10 @@
18//config: Adjtimex reads and optionally sets adjustment parameters for 18//config: Adjtimex reads and optionally sets adjustment parameters for
19//config: the Linux clock adjustment algorithm. 19//config: the Linux clock adjustment algorithm.
20 20
21//applet:IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP))
22
23//kbuild:lib-$(CONFIG_ADJTIMEX) += adjtimex.o
24
21//usage:#define adjtimex_trivial_usage 25//usage:#define adjtimex_trivial_usage
22//usage: "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]" 26//usage: "[-q] [-o OFF] [-f FREQ] [-p TCONST] [-t TICK]"
23//usage:#define adjtimex_full_usage "\n\n" 27//usage:#define adjtimex_full_usage "\n\n"
diff --git a/miscutils/bbconfig.c b/miscutils/bbconfig.c
index 8a709f9d3..4781a4276 100644
--- a/miscutils/bbconfig.c
+++ b/miscutils/bbconfig.c
@@ -22,6 +22,10 @@
22//config: and have very little memory, this might not be a win. Otherwise, 22//config: and have very little memory, this might not be a win. Otherwise,
23//config: you probably want this. 23//config: you probably want this.
24 24
25//applet:IF_BBCONFIG(APPLET(bbconfig, BB_DIR_BIN, BB_SUID_DROP))
26
27//kbuild:lib-$(CONFIG_BBCONFIG) += bbconfig.o
28
25//usage:#define bbconfig_trivial_usage 29//usage:#define bbconfig_trivial_usage
26//usage: "" 30//usage: ""
27//usage:#define bbconfig_full_usage "\n\n" 31//usage:#define bbconfig_full_usage "\n\n"
diff --git a/miscutils/beep.c b/miscutils/beep.c
index f6fa8348d..14802b543 100644
--- a/miscutils/beep.c
+++ b/miscutils/beep.c
@@ -30,6 +30,10 @@
30//config: help 30//config: help
31//config: Length in ms for default beep. 31//config: Length in ms for default beep.
32 32
33//applet:IF_BEEP(APPLET(beep, BB_DIR_USR_BIN, BB_SUID_DROP))
34
35//kbuild:lib-$(CONFIG_BEEP) += beep.o
36
33//usage:#define beep_trivial_usage 37//usage:#define beep_trivial_usage
34//usage: "-f FREQ -l LEN -d DELAY -r COUNT -n" 38//usage: "-f FREQ -l LEN -d DELAY -r COUNT -n"
35//usage:#define beep_full_usage "\n\n" 39//usage:#define beep_full_usage "\n\n"
diff --git a/miscutils/chat.c b/miscutils/chat.c
index 92a23441c..dc85f82fb 100644
--- a/miscutils/chat.c
+++ b/miscutils/chat.c
@@ -74,6 +74,10 @@
74//config: help 74//config: help
75//config: Support CLR_ABORT directive. 75//config: Support CLR_ABORT directive.
76 76
77//applet:IF_CHAT(APPLET(chat, BB_DIR_USR_SBIN, BB_SUID_DROP))
78
79//kbuild:lib-$(CONFIG_CHAT) += chat.o
80
77//usage:#define chat_trivial_usage 81//usage:#define chat_trivial_usage
78//usage: "EXPECT [SEND [EXPECT [SEND...]]]" 82//usage: "EXPECT [SEND [EXPECT [SEND...]]]"
79//usage:#define chat_full_usage "\n\n" 83//usage:#define chat_full_usage "\n\n"
diff --git a/miscutils/chrt.c b/miscutils/chrt.c
index d76c0d152..1604a6890 100644
--- a/miscutils/chrt.c
+++ b/miscutils/chrt.c
@@ -12,6 +12,10 @@
12//config: manipulate real-time attributes of a process. 12//config: manipulate real-time attributes of a process.
13//config: This requires sched_{g,s}etparam support in your libc. 13//config: This requires sched_{g,s}etparam support in your libc.
14 14
15//applet:IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP))
16
17//kbuild:lib-$(CONFIG_CHRT) += chrt.o
18
15//usage:#define chrt_trivial_usage 19//usage:#define chrt_trivial_usage
16//usage: "[-prfom] [PRIO] [PID | PROG ARGS]" 20//usage: "[-prfom] [PRIO] [PID | PROG ARGS]"
17//usage:#define chrt_full_usage "\n\n" 21//usage:#define chrt_full_usage "\n\n"
diff --git a/miscutils/crontab.c b/miscutils/crontab.c
index bcd2eab33..bcd424578 100644
--- a/miscutils/crontab.c
+++ b/miscutils/crontab.c
@@ -18,6 +18,11 @@
18//config: Note that Busybox binary must be setuid root for this applet to 18//config: Note that Busybox binary must be setuid root for this applet to
19//config: work properly. 19//config: work properly.
20 20
21/* Needs to be run by root or be suid root - needs to change /var/spool/cron* files: */
22//applet:IF_CRONTAB(APPLET(crontab, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
23
24//kbuild:lib-$(CONFIG_CRONTAB) += crontab.o
25
21//usage:#define crontab_trivial_usage 26//usage:#define crontab_trivial_usage
22//usage: "[-c DIR] [-u USER] [-ler]|[FILE]" 27//usage: "[-c DIR] [-u USER] [-ler]|[FILE]"
23//usage:#define crontab_full_usage "\n\n" 28//usage:#define crontab_full_usage "\n\n"
diff --git a/miscutils/dc.c b/miscutils/dc.c
index 2b77cd614..7986fef5f 100644
--- a/miscutils/dc.c
+++ b/miscutils/dc.c
@@ -17,6 +17,10 @@
17//config: Enable power and exp functions. 17//config: Enable power and exp functions.
18//config: NOTE: This will require libm to be present for linking. 18//config: NOTE: This will require libm to be present for linking.
19 19
20//applet:IF_DC(APPLET(dc, BB_DIR_USR_BIN, BB_SUID_DROP))
21
22//kbuild:lib-$(CONFIG_DC) += dc.o
23
20//usage:#define dc_trivial_usage 24//usage:#define dc_trivial_usage
21//usage: "EXPRESSION..." 25//usage: "EXPRESSION..."
22//usage: 26//usage:
diff --git a/miscutils/devfsd.c b/miscutils/devfsd.c
index 361f3666f..99bdc72b8 100644
--- a/miscutils/devfsd.c
+++ b/miscutils/devfsd.c
@@ -110,6 +110,10 @@
110//config: /dev/loop0. If your /dev directory has normal names instead of 110//config: /dev/loop0. If your /dev directory has normal names instead of
111//config: devfs names, you don't want this. 111//config: devfs names, you don't want this.
112 112
113//applet:IF_DEVFSD(APPLET(devfsd, BB_DIR_SBIN, BB_SUID_DROP))
114
115//kbuild:lib-$(CONFIG_DEVFSD) += devfsd.o
116
113//usage:#define devfsd_trivial_usage 117//usage:#define devfsd_trivial_usage
114//usage: "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]") 118//usage: "mntpnt [-v]" IF_DEVFSD_FG_NP("[-fg][-np]")
115//usage:#define devfsd_full_usage "\n\n" 119//usage:#define devfsd_full_usage "\n\n"
diff --git a/miscutils/devmem.c b/miscutils/devmem.c
index dd6574e93..aeb32b13a 100644
--- a/miscutils/devmem.c
+++ b/miscutils/devmem.c
@@ -10,6 +10,10 @@
10//config: devmem is a small program that reads and writes from physical 10//config: devmem is a small program that reads and writes from physical
11//config: memory using /dev/mem. 11//config: memory using /dev/mem.
12 12
13//applet:IF_DEVMEM(APPLET(devmem, BB_DIR_SBIN, BB_SUID_DROP))
14
15//kbuild:lib-$(CONFIG_DEVMEM) += devmem.o
16
13//usage:#define devmem_trivial_usage 17//usage:#define devmem_trivial_usage
14//usage: "ADDRESS [WIDTH [VALUE]]" 18//usage: "ADDRESS [WIDTH [VALUE]]"
15//usage:#define devmem_full_usage "\n\n" 19//usage:#define devmem_full_usage "\n\n"
diff --git a/miscutils/eject.c b/miscutils/eject.c
index d271066ad..667932f6c 100644
--- a/miscutils/eject.c
+++ b/miscutils/eject.c
@@ -27,6 +27,10 @@
27//config: Add the -s option to eject, this allows to eject SCSI-Devices and 27//config: Add the -s option to eject, this allows to eject SCSI-Devices and
28//config: usb-storage devices. 28//config: usb-storage devices.
29 29
30//applet:IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP))
31
32//kbuild:lib-$(CONFIG_EJECT) += eject.o
33
30//usage:#define eject_trivial_usage 34//usage:#define eject_trivial_usage
31//usage: "[-t] [-T] [DEVICE]" 35//usage: "[-t] [-T] [DEVICE]"
32//usage:#define eject_full_usage "\n\n" 36//usage:#define eject_full_usage "\n\n"
diff --git a/miscutils/fbsplash.c b/miscutils/fbsplash.c
index 93fd9412b..fc6c9b953 100644
--- a/miscutils/fbsplash.c
+++ b/miscutils/fbsplash.c
@@ -42,6 +42,10 @@
42//config: "NN" (ASCII decimal number) - percentage to show on progress bar 42//config: "NN" (ASCII decimal number) - percentage to show on progress bar
43//config: "exit" - well you guessed it 43//config: "exit" - well you guessed it
44 44
45//applet:IF_FBSPLASH(APPLET(fbsplash, BB_DIR_SBIN, BB_SUID_DROP))
46
47//kbuild:lib-$(CONFIG_FBSPLASH) += fbsplash.o
48
45//usage:#define fbsplash_trivial_usage 49//usage:#define fbsplash_trivial_usage
46//usage: "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]" 50//usage: "-s IMGFILE [-c] [-d DEV] [-i INIFILE] [-f CMD]"
47//usage:#define fbsplash_full_usage "\n\n" 51//usage:#define fbsplash_full_usage "\n\n"
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c
index 08ec44e0c..2a9bd6cfe 100644
--- a/miscutils/flash_eraseall.c
+++ b/miscutils/flash_eraseall.c
@@ -16,6 +16,10 @@
16//config: The flash_eraseall binary from mtd-utils as of git head c4c6a59eb. 16//config: The flash_eraseall binary from mtd-utils as of git head c4c6a59eb.
17//config: This utility is used to erase the whole MTD device. 17//config: This utility is used to erase the whole MTD device.
18 18
19//applet:IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP))
20
21//kbuild:lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o
22
19//usage:#define flash_eraseall_trivial_usage 23//usage:#define flash_eraseall_trivial_usage
20//usage: "[-jNq] MTD_DEVICE" 24//usage: "[-jNq] MTD_DEVICE"
21//usage:#define flash_eraseall_full_usage "\n\n" 25//usage:#define flash_eraseall_full_usage "\n\n"
diff --git a/miscutils/flash_lock_unlock.c b/miscutils/flash_lock_unlock.c
index 287abaafd..2f698641f 100644
--- a/miscutils/flash_lock_unlock.c
+++ b/miscutils/flash_lock_unlock.c
@@ -17,6 +17,12 @@
17//config: The flash_unlock binary from mtd-utils as of git head 5ec0c10d0. This 17//config: The flash_unlock binary from mtd-utils as of git head 5ec0c10d0. This
18//config: utility unlocks part or all of the flash device. 18//config: utility unlocks part or all of the flash device.
19 19
20//applet:IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_lock))
21//applet:IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_unlock))
22
23//kbuild:lib-$(CONFIG_FLASH_LOCK) += flash_lock_unlock.o
24//kbuild:lib-$(CONFIG_FLASH_UNLOCK) += flash_lock_unlock.o
25
20//usage:#define flash_lock_trivial_usage 26//usage:#define flash_lock_trivial_usage
21//usage: "MTD_DEVICE OFFSET SECTORS" 27//usage: "MTD_DEVICE OFFSET SECTORS"
22//usage:#define flash_lock_full_usage "\n\n" 28//usage:#define flash_lock_full_usage "\n\n"
diff --git a/miscutils/flashcp.c b/miscutils/flashcp.c
index 6cbf455ff..4bbc67727 100644
--- a/miscutils/flashcp.c
+++ b/miscutils/flashcp.c
@@ -13,6 +13,10 @@
13//config: The flashcp binary, inspired by mtd-utils as of git head 5eceb74f7. 13//config: The flashcp binary, inspired by mtd-utils as of git head 5eceb74f7.
14//config: This utility is used to copy images into a MTD device. 14//config: This utility is used to copy images into a MTD device.
15 15
16//applet:IF_FLASHCP(APPLET(flashcp, BB_DIR_USR_SBIN, BB_SUID_DROP))
17
18//kbuild:lib-$(CONFIG_FLASHCP) += flashcp.o
19
16//usage:#define flashcp_trivial_usage 20//usage:#define flashcp_trivial_usage
17//usage: "-v FILE MTD_DEVICE" 21//usage: "-v FILE MTD_DEVICE"
18//usage:#define flashcp_full_usage "\n\n" 22//usage:#define flashcp_full_usage "\n\n"
diff --git a/miscutils/hdparm.c b/miscutils/hdparm.c
index 06311ccf7..e43a0dec2 100644
--- a/miscutils/hdparm.c
+++ b/miscutils/hdparm.c
@@ -70,6 +70,10 @@
70//config: help 70//config: help
71//config: Enables the 'hdparm -d' option to get/set using_dma flag. 71//config: Enables the 'hdparm -d' option to get/set using_dma flag.
72 72
73//applet:IF_HDPARM(APPLET(hdparm, BB_DIR_SBIN, BB_SUID_DROP))
74
75//kbuild:lib-$(CONFIG_HDPARM) += hdparm.o
76
73//usage:#define hdparm_trivial_usage 77//usage:#define hdparm_trivial_usage
74//usage: "[OPTIONS] [DEVICE]" 78//usage: "[OPTIONS] [DEVICE]"
75//usage:#define hdparm_full_usage "\n\n" 79//usage:#define hdparm_full_usage "\n\n"
diff --git a/miscutils/inotifyd.c b/miscutils/inotifyd.c
index ffac8b958..601df6465 100644
--- a/miscutils/inotifyd.c
+++ b/miscutils/inotifyd.c
@@ -33,6 +33,10 @@
33//config: Simple inotify daemon. Reports filesystem changes. Requires 33//config: Simple inotify daemon. Reports filesystem changes. Requires
34//config: kernel >= 2.6.13 34//config: kernel >= 2.6.13
35 35
36//applet:IF_INOTIFYD(APPLET(inotifyd, BB_DIR_SBIN, BB_SUID_DROP))
37
38//kbuild:lib-$(CONFIG_INOTIFYD) += inotifyd.o
39
36//usage:#define inotifyd_trivial_usage 40//usage:#define inotifyd_trivial_usage
37//usage: "PROG FILE1[:MASK]..." 41//usage: "PROG FILE1[:MASK]..."
38//usage:#define inotifyd_full_usage "\n\n" 42//usage:#define inotifyd_full_usage "\n\n"
diff --git a/miscutils/ionice.c b/miscutils/ionice.c
index 1e1a5861c..c54b3a6e1 100644
--- a/miscutils/ionice.c
+++ b/miscutils/ionice.c
@@ -14,6 +14,10 @@
14//config: Set/set program io scheduling class and priority 14//config: Set/set program io scheduling class and priority
15//config: Requires kernel >= 2.6.13 15//config: Requires kernel >= 2.6.13
16 16
17//applet:IF_IONICE(APPLET(ionice, BB_DIR_BIN, BB_SUID_DROP))
18
19//kbuild:lib-$(CONFIG_IONICE) += ionice.o
20
17//usage:#define ionice_trivial_usage 21//usage:#define ionice_trivial_usage
18//usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG]" 22//usage: "[-c 1-3] [-n 0-7] [-p PID] [PROG]"
19//usage:#define ionice_full_usage "\n\n" 23//usage:#define ionice_full_usage "\n\n"
diff --git a/miscutils/last.c b/miscutils/last.c
index 2b7060c53..67c1343f1 100644
--- a/miscutils/last.c
+++ b/miscutils/last.c
@@ -21,6 +21,14 @@
21//config: 'last' displays detailed information about the last users that 21//config: 'last' displays detailed information about the last users that
22//config: logged into the system (mimics sysvinit last). +900 bytes. 22//config: logged into the system (mimics sysvinit last). +900 bytes.
23 23
24//applet:IF_LAST(APPLET(last, BB_DIR_USR_BIN, BB_SUID_DROP))
25
26//kbuild:ifeq ($(CONFIG_FEATURE_LAST_FANCY),y)
27//kbuild:lib-$(CONFIG_FEATURE_LAST_FANCY) += last_fancy.o
28//kbuild:else
29//kbuild:lib-$(CONFIG_LAST) += last.o
30//kbuild:endif
31
24//usage:#define last_trivial_usage 32//usage:#define last_trivial_usage
25//usage: ""IF_FEATURE_LAST_FANCY("[-HW] [-f FILE]") 33//usage: ""IF_FEATURE_LAST_FANCY("[-HW] [-f FILE]")
26//usage:#define last_full_usage "\n\n" 34//usage:#define last_full_usage "\n\n"
diff --git a/miscutils/less.c b/miscutils/less.c
index 61acfdcb5..e90691b49 100644
--- a/miscutils/less.c
+++ b/miscutils/less.c
@@ -105,6 +105,10 @@
105//config: help 105//config: help
106//config: Enables "-N" command. 106//config: Enables "-N" command.
107 107
108//applet:IF_LESS(APPLET(less, BB_DIR_USR_BIN, BB_SUID_DROP))
109
110//kbuild:lib-$(CONFIG_LESS) += less.o
111
108//usage:#define less_trivial_usage 112//usage:#define less_trivial_usage
109//usage: "[-E" IF_FEATURE_LESS_REGEXP("I")IF_FEATURE_LESS_FLAGS("Mm") 113//usage: "[-E" IF_FEATURE_LESS_REGEXP("I")IF_FEATURE_LESS_FLAGS("Mm")
110//usage: "N" IF_FEATURE_LESS_TRUNCATE("S") "h~] [FILE]..." 114//usage: "N" IF_FEATURE_LESS_TRUNCATE("S") "h~] [FILE]..."
diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c
index cbdb0e3a1..6278ee77c 100644
--- a/miscutils/makedevs.c
+++ b/miscutils/makedevs.c
@@ -38,6 +38,10 @@
38//config: 38//config:
39//config:endchoice 39//config:endchoice
40 40
41//applet:IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP))
42
43//kbuild:lib-$(CONFIG_MAKEDEVS) += makedevs.o
44
41//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF 45//usage:#if ENABLE_FEATURE_MAKEDEVS_LEAF
42//usage:#define makedevs_trivial_usage 46//usage:#define makedevs_trivial_usage
43//usage: "NAME TYPE MAJOR MINOR FIRST LAST [s]" 47//usage: "NAME TYPE MAJOR MINOR FIRST LAST [s]"
diff --git a/miscutils/man.c b/miscutils/man.c
index cded6ebee..6a636f1ec 100644
--- a/miscutils/man.c
+++ b/miscutils/man.c
@@ -8,6 +8,10 @@
8//config: help 8//config: help
9//config: Format and display manual pages. 9//config: Format and display manual pages.
10 10
11//applet:IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP))
12
13//kbuild:lib-$(CONFIG_MAN) += man.o
14
11//usage:#define man_trivial_usage 15//usage:#define man_trivial_usage
12//usage: "[-aw] [MANPAGE]..." 16//usage: "[-aw] [MANPAGE]..."
13//usage:#define man_full_usage "\n\n" 17//usage:#define man_full_usage "\n\n"
diff --git a/miscutils/microcom.c b/miscutils/microcom.c
index c6ba476db..04605d883 100644
--- a/miscutils/microcom.c
+++ b/miscutils/microcom.c
@@ -13,6 +13,10 @@
13//config: help 13//config: help
14//config: The poor man's minicom utility for chatting with serial port devices. 14//config: The poor man's minicom utility for chatting with serial port devices.
15 15
16//applet:IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP))
17
18//kbuild:lib-$(CONFIG_MICROCOM) += microcom.o
19
16//usage:#define microcom_trivial_usage 20//usage:#define microcom_trivial_usage
17//usage: "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY" 21//usage: "[-d DELAY] [-t TIMEOUT] [-s SPEED] [-X] TTY"
18//usage:#define microcom_full_usage "\n\n" 22//usage:#define microcom_full_usage "\n\n"
diff --git a/miscutils/mountpoint.c b/miscutils/mountpoint.c
index 12af2ca9a..8b9e1d779 100644
--- a/miscutils/mountpoint.c
+++ b/miscutils/mountpoint.c
@@ -14,6 +14,10 @@
14//config: help 14//config: help
15//config: mountpoint checks if the directory is a mountpoint. 15//config: mountpoint checks if the directory is a mountpoint.
16 16
17//applet:IF_MOUNTPOINT(APPLET(mountpoint, BB_DIR_BIN, BB_SUID_DROP))
18
19//kbuild:lib-$(CONFIG_MOUNTPOINT) += mountpoint.o
20
17//usage:#define mountpoint_trivial_usage 21//usage:#define mountpoint_trivial_usage
18//usage: "[-q] <[-dn] DIR | -x DEVICE>" 22//usage: "[-q] <[-dn] DIR | -x DEVICE>"
19//usage:#define mountpoint_full_usage "\n\n" 23//usage:#define mountpoint_full_usage "\n\n"
diff --git a/miscutils/mt.c b/miscutils/mt.c
index 75a09b662..6b3169675 100644
--- a/miscutils/mt.c
+++ b/miscutils/mt.c
@@ -10,6 +10,10 @@
10//config: to advance or rewind a tape past a specified number of archive 10//config: to advance or rewind a tape past a specified number of archive
11//config: files on the tape. 11//config: files on the tape.
12 12
13//applet:IF_MT(APPLET(mt, BB_DIR_BIN, BB_SUID_DROP))
14
15//kbuild:lib-$(CONFIG_MT) += mt.o
16
13//usage:#define mt_trivial_usage 17//usage:#define mt_trivial_usage
14//usage: "[-f device] opcode value" 18//usage: "[-f device] opcode value"
15//usage:#define mt_full_usage "\n\n" 19//usage:#define mt_full_usage "\n\n"
diff --git a/miscutils/raidautorun.c b/miscutils/raidautorun.c
index 578b2cf52..c6d8e6235 100644
--- a/miscutils/raidautorun.c
+++ b/miscutils/raidautorun.c
@@ -15,6 +15,10 @@
15//config: raidautorun tells the kernel md driver to 15//config: raidautorun tells the kernel md driver to
16//config: search and start RAID arrays. 16//config: search and start RAID arrays.
17 17
18//applet:IF_RAIDAUTORUN(APPLET(raidautorun, BB_DIR_SBIN, BB_SUID_DROP))
19
20//kbuild:lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o
21
18//usage:#define raidautorun_trivial_usage 22//usage:#define raidautorun_trivial_usage
19//usage: "DEVICE" 23//usage: "DEVICE"
20//usage:#define raidautorun_full_usage "\n\n" 24//usage:#define raidautorun_full_usage "\n\n"
diff --git a/miscutils/readahead.c b/miscutils/readahead.c
index 0b502f88c..b8e9b257f 100644
--- a/miscutils/readahead.c
+++ b/miscutils/readahead.c
@@ -27,6 +27,10 @@
27//config: As readahead(2) blocks until each file has been read, it is best to 27//config: As readahead(2) blocks until each file has been read, it is best to
28//config: run this applet as a background job. 28//config: run this applet as a background job.
29 29
30//applet:IF_READAHEAD(APPLET(readahead, BB_DIR_USR_SBIN, BB_SUID_DROP))
31
32//kbuild:lib-$(CONFIG_READAHEAD) += readahead.o
33
30//usage:#define readahead_trivial_usage 34//usage:#define readahead_trivial_usage
31//usage: "[FILE]..." 35//usage: "[FILE]..."
32//usage:#define readahead_full_usage "\n\n" 36//usage:#define readahead_full_usage "\n\n"
diff --git a/miscutils/runlevel.c b/miscutils/runlevel.c
index 7c07a72e2..b6412a6ea 100644
--- a/miscutils/runlevel.c
+++ b/miscutils/runlevel.c
@@ -21,6 +21,10 @@
21//config: This applet uses utmp but does not rely on busybox supporing 21//config: This applet uses utmp but does not rely on busybox supporing
22//config: utmp on purpose. It is used by e.g. emdebian via /etc/init.d/rc. 22//config: utmp on purpose. It is used by e.g. emdebian via /etc/init.d/rc.
23 23
24//applet:IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP))
25
26//kbuild:lib-$(CONFIG_RUNLEVEL) += runlevel.o
27
24//usage:#define runlevel_trivial_usage 28//usage:#define runlevel_trivial_usage
25//usage: "[FILE]" 29//usage: "[FILE]"
26//usage:#define runlevel_full_usage "\n\n" 30//usage:#define runlevel_full_usage "\n\n"
diff --git a/miscutils/rx.c b/miscutils/rx.c
index 359ad5046..7fca8e36b 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -21,6 +21,10 @@
21//config: help 21//config: help
22//config: Receive files using the Xmodem protocol. 22//config: Receive files using the Xmodem protocol.
23 23
24//applet:IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP))
25
26//kbuild:lib-$(CONFIG_RX) += rx.o
27
24//usage:#define rx_trivial_usage 28//usage:#define rx_trivial_usage
25//usage: "FILE" 29//usage: "FILE"
26//usage:#define rx_full_usage "\n\n" 30//usage:#define rx_full_usage "\n\n"
diff --git a/miscutils/setsid.c b/miscutils/setsid.c
index f0ec04a0b..143a8f8fa 100644
--- a/miscutils/setsid.c
+++ b/miscutils/setsid.c
@@ -19,6 +19,10 @@
19//config: help 19//config: help
20//config: setsid runs a program in a new session 20//config: setsid runs a program in a new session
21 21
22//applet:IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP))
23
24//kbuild:lib-$(CONFIG_SETSID) += setsid.o
25
22//usage:#define setsid_trivial_usage 26//usage:#define setsid_trivial_usage
23//usage: "[-c] PROG ARGS" 27//usage: "[-c] PROG ARGS"
24//usage:#define setsid_full_usage "\n\n" 28//usage:#define setsid_full_usage "\n\n"
diff --git a/miscutils/strings.c b/miscutils/strings.c
index d0e637987..4d9bfe690 100644
--- a/miscutils/strings.c
+++ b/miscutils/strings.c
@@ -13,6 +13,10 @@
13//config: strings prints the printable character sequences for each file 13//config: strings prints the printable character sequences for each file
14//config: specified. 14//config: specified.
15 15
16//applet:IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP))
17
18//kbuild:lib-$(CONFIG_STRINGS) += strings.o
19
16//usage:#define strings_trivial_usage 20//usage:#define strings_trivial_usage
17//usage: "[-fo] [-t o/d/x] [-n LEN] [FILE]..." 21//usage: "[-fo] [-t o/d/x] [-n LEN] [FILE]..."
18//usage:#define strings_full_usage "\n\n" 22//usage:#define strings_full_usage "\n\n"
diff --git a/miscutils/time.c b/miscutils/time.c
index 90d2ab67c..a73a837d8 100644
--- a/miscutils/time.c
+++ b/miscutils/time.c
@@ -16,6 +16,10 @@
16//config: When the command finishes, time writes a message to standard output 16//config: When the command finishes, time writes a message to standard output
17//config: giving timing statistics about this program run. 17//config: giving timing statistics about this program run.
18 18
19//applet:IF_TIME(APPLET(time, BB_DIR_USR_BIN, BB_SUID_DROP))
20
21//kbuild:lib-$(CONFIG_TIME) += time.o
22
19//usage:#define time_trivial_usage 23//usage:#define time_trivial_usage
20//usage: "[-v] PROG ARGS" 24//usage: "[-v] PROG ARGS"
21//usage:#define time_full_usage "\n\n" 25//usage:#define time_full_usage "\n\n"
diff --git a/miscutils/timeout.c b/miscutils/timeout.c
index 4d598ead2..f29dc8a9c 100644
--- a/miscutils/timeout.c
+++ b/miscutils/timeout.c
@@ -34,6 +34,10 @@
34//config: Runs a program and watches it. If it does not terminate in 34//config: Runs a program and watches it. If it does not terminate in
35//config: specified number of seconds, it is sent a signal. 35//config: specified number of seconds, it is sent a signal.
36 36
37//applet:IF_TIMEOUT(APPLET(timeout, BB_DIR_USR_BIN, BB_SUID_DROP))
38
39//kbuild:lib-$(CONFIG_TIMEOUT) += timeout.o
40
37//usage:#define timeout_trivial_usage 41//usage:#define timeout_trivial_usage
38//usage: "[-t SECS] [-s SIG] PROG ARGS" 42//usage: "[-t SECS] [-s SIG] PROG ARGS"
39//usage:#define timeout_full_usage "\n\n" 43//usage:#define timeout_full_usage "\n\n"
diff --git a/miscutils/ttysize.c b/miscutils/ttysize.c
index a63b731d2..135ce8535 100644
--- a/miscutils/ttysize.c
+++ b/miscutils/ttysize.c
@@ -18,6 +18,10 @@
18//config: error, but returns default 80x24. 18//config: error, but returns default 80x24.
19//config: Usage in shell scripts: width=`ttysize w`. 19//config: Usage in shell scripts: width=`ttysize w`.
20 20
21//applet:IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP))
22
23//kbuild:lib-$(CONFIG_TTYSIZE) += ttysize.o
24
21//usage:#define ttysize_trivial_usage 25//usage:#define ttysize_trivial_usage
22//usage: "[w] [h]" 26//usage: "[w] [h]"
23//usage:#define ttysize_full_usage "\n\n" 27//usage:#define ttysize_full_usage "\n\n"
diff --git a/miscutils/volname.c b/miscutils/volname.c
index 855f2206a..6d1addbb5 100644
--- a/miscutils/volname.c
+++ b/miscutils/volname.c
@@ -33,6 +33,10 @@
33//config: help 33//config: help
34//config: Prints a CD-ROM volume name. 34//config: Prints a CD-ROM volume name.
35 35
36//applet:IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP))
37
38//kbuild:lib-$(CONFIG_VOLNAME) += volname.o
39
36//usage:#define volname_trivial_usage 40//usage:#define volname_trivial_usage
37//usage: "[DEVICE]" 41//usage: "[DEVICE]"
38//usage:#define volname_full_usage "\n\n" 42//usage:#define volname_full_usage "\n\n"
diff --git a/miscutils/watchdog.c b/miscutils/watchdog.c
index 7a743ef1b..07ae64e52 100644
--- a/miscutils/watchdog.c
+++ b/miscutils/watchdog.c
@@ -20,6 +20,10 @@
20//config: certain amount of time, the watchdog device assumes the system has 20//config: certain amount of time, the watchdog device assumes the system has
21//config: hung, and will cause the hardware to reboot. 21//config: hung, and will cause the hardware to reboot.
22 22
23//applet:IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP))
24
25//kbuild:lib-$(CONFIG_WATCHDOG) += watchdog.o
26
23//usage:#define watchdog_trivial_usage 27//usage:#define watchdog_trivial_usage
24//usage: "[-t N[ms]] [-T N[ms]] [-F] DEV" 28//usage: "[-t N[ms]] [-T N[ms]] [-F] DEV"
25//usage:#define watchdog_full_usage "\n\n" 29//usage:#define watchdog_full_usage "\n\n"