diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-22 23:54:17 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2016-11-22 23:54:17 +0100 |
commit | f88e3bfa8ded4f1c7e7d2143a1cfcbbdfe5e8541 (patch) | |
tree | 6e7fd8f8f547fcf01bb9d55da2ace429ab3b53f6 | |
parent | fb4da167114e96d7f20ef97474f976f8ffa604e7 (diff) | |
download | busybox-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>
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 | |||
76 | IF_TEST(APPLET_NOFORK([, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) | 76 | IF_TEST(APPLET_NOFORK([, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) |
77 | IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) | 77 | IF_TEST(APPLET_NOFORK([[, test, BB_DIR_USR_BIN, BB_SUID_DROP, test)) |
78 | IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP)) | 78 | IF_ACPID(APPLET(acpid, BB_DIR_SBIN, BB_SUID_DROP)) |
79 | IF_ADJTIMEX(APPLET(adjtimex, BB_DIR_SBIN, BB_SUID_DROP)) | ||
80 | IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP)) | 79 | IF_ARP(APPLET(arp, BB_DIR_SBIN, BB_SUID_DROP)) |
81 | IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 80 | IF_ARPING(APPLET(arping, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
82 | IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename)) | 81 | IF_BASENAME(APPLET_NOFORK(basename, basename, BB_DIR_USR_BIN, BB_SUID_DROP, basename)) |
83 | IF_BBCONFIG(APPLET(bbconfig, BB_DIR_BIN, BB_SUID_DROP)) | ||
84 | IF_BEEP(APPLET(beep, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
85 | IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP)) | 82 | IF_BLKID(APPLET(blkid, BB_DIR_SBIN, BB_SUID_DROP)) |
86 | IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 83 | IF_BRCTL(APPLET(brctl, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
87 | IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP)) | 84 | IF_CAL(APPLET(cal, BB_DIR_USR_BIN, BB_SUID_DROP)) |
88 | IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat)) | 85 | IF_CAT(APPLET_NOFORK(cat, cat, BB_DIR_BIN, BB_SUID_DROP, cat)) |
89 | IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP)) | 86 | IF_CATV(APPLET(catv, BB_DIR_BIN, BB_SUID_DROP)) |
90 | IF_CHAT(APPLET(chat, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
91 | IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP)) | 87 | IF_CHCON(APPLET(chcon, BB_DIR_USR_BIN, BB_SUID_DROP)) |
92 | IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp)) | 88 | IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp)) |
93 | IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) | 89 | IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod)) |
94 | IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) | 90 | IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown)) |
95 | IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 91 | IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
96 | IF_CHRT(APPLET(chrt, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
97 | IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) | 92 | IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP)) |
98 | IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum)) | 93 | IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum)) |
99 | IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP)) | 94 | IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP)) |
100 | IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP)) | 95 | IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP)) |
101 | IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp)) | 96 | IF_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: */ | ||
103 | IF_CRONTAB(APPLET(crontab, BB_DIR_USR_BIN, BB_SUID_REQUIRE)) | ||
104 | IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut)) | 97 | IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut)) |
105 | IF_DC(APPLET(dc, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
106 | IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd)) | 98 | IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd)) |
107 | IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP)) | 99 | IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP)) |
108 | IF_DEVFSD(APPLET(devfsd, BB_DIR_SBIN, BB_SUID_DROP)) | ||
109 | IF_DEVMEM(APPLET(devmem, BB_DIR_SBIN, BB_SUID_DROP)) | ||
110 | IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP)) | 100 | IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP)) |
111 | IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 101 | IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
112 | IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname)) | 102 | IF_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)) |
121 | IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) | 111 | IF_ECHO(APPLET_NOFORK(echo, echo, BB_DIR_BIN, BB_SUID_DROP, echo)) |
122 | IF_EJECT(APPLET(eject, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
123 | IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) | 112 | IF_ENV(APPLET_NOEXEC(env, env, BB_DIR_USR_BIN, BB_SUID_DROP, env)) |
124 | IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) | 113 | IF_ETHER_WAKE(APPLET_ODDNAME(ether-wake, ether_wake, BB_DIR_USR_SBIN, BB_SUID_DROP, ether_wake)) |
125 | IF_EXPAND(APPLET(expand, BB_DIR_USR_BIN, BB_SUID_DROP)) | 114 | IF_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)) | |||
127 | IF_FAKEIDENTD(APPLET(fakeidentd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 116 | IF_FAKEIDENTD(APPLET(fakeidentd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
128 | IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false)) | 117 | IF_FALSE(APPLET_NOFORK(false, false, BB_DIR_BIN, BB_SUID_DROP, false)) |
129 | IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 118 | IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
130 | IF_FBSPLASH(APPLET(fbsplash, BB_DIR_SBIN, BB_SUID_DROP)) | ||
131 | IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush)) | 119 | IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush)) |
132 | IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 120 | IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
133 | IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP)) | 121 | IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP)) |
134 | IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP)) | 122 | IF_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: */ |
136 | IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE)) | 124 | IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE)) |
137 | IF_FLASH_ERASEALL(APPLET(flash_eraseall, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
138 | IF_FLASH_LOCK(APPLET_ODDNAME(flash_lock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_lock)) | ||
139 | IF_FLASH_UNLOCK(APPLET_ODDNAME(flash_unlock, flash_lock_unlock, BB_DIR_USR_SBIN, BB_SUID_DROP, flash_unlock)) | ||
140 | IF_FLASHCP(APPLET(flashcp, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
141 | IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP)) | 125 | IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP)) |
142 | IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold)) | 126 | IF_FOLD(APPLET_NOEXEC(fold, fold, BB_DIR_USR_BIN, BB_SUID_DROP, fold)) |
143 | IF_FREE(APPLET(free, BB_DIR_USR_BIN, BB_SUID_DROP)) | 127 | IF_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)) | |||
154 | IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP)) | 138 | IF_GETOPT(APPLET(getopt, BB_DIR_BIN, BB_SUID_DROP)) |
155 | IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 139 | IF_GETSEBOOL(APPLET(getsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
156 | IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd)) | 140 | IF_HD(APPLET_NOEXEC(hd, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hd)) |
157 | IF_HDPARM(APPLET(hdparm, BB_DIR_SBIN, BB_SUID_DROP)) | ||
158 | IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head)) | 141 | IF_HEAD(APPLET_NOEXEC(head, head, BB_DIR_USR_BIN, BB_SUID_DROP, head)) |
159 | IF_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hexdump)) | 142 | IF_HEXDUMP(APPLET_NOEXEC(hexdump, hexdump, BB_DIR_USR_BIN, BB_SUID_DROP, hexdump)) |
160 | IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 143 | IF_HTTPD(APPLET(httpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
@@ -163,9 +146,7 @@ IF_IFCONFIG(APPLET(ifconfig, BB_DIR_SBIN, BB_SUID_DROP)) | |||
163 | IF_IFENSLAVE(APPLET(ifenslave, BB_DIR_SBIN, BB_SUID_DROP)) | 146 | IF_IFENSLAVE(APPLET(ifenslave, BB_DIR_SBIN, BB_SUID_DROP)) |
164 | IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 147 | IF_IFPLUGD(APPLET(ifplugd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
165 | IF_INETD(APPLET(inetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 148 | IF_INETD(APPLET(inetd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
166 | IF_INOTIFYD(APPLET(inotifyd, BB_DIR_SBIN, BB_SUID_DROP)) | ||
167 | IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP)) | 149 | IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP)) |
168 | IF_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)) | |||
185 | IF_KILL(APPLET(kill, BB_DIR_BIN, BB_SUID_DROP)) | 166 | IF_KILL(APPLET(kill, BB_DIR_BIN, BB_SUID_DROP)) |
186 | IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall)) | 167 | IF_KILLALL(APPLET_ODDNAME(killall, kill, BB_DIR_USR_BIN, BB_SUID_DROP, killall)) |
187 | IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5)) | 168 | IF_KILLALL5(APPLET_ODDNAME(killall5, kill, BB_DIR_USR_SBIN, BB_SUID_DROP, killall5)) |
188 | IF_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)) |
190 | IF_LESS(APPLET(less, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
191 | IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln)) | 170 | IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln)) |
192 | IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 171 | IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
193 | IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 172 | IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
@@ -197,11 +176,8 @@ IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP)) | |||
197 | IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) | 176 | IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) |
198 | IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) | 177 | IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) |
199 | IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) | 178 | IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) |
200 | IF_MAKEDEVS(APPLET(makedevs, BB_DIR_SBIN, BB_SUID_DROP)) | ||
201 | IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP)) | 179 | IF_MAKEMIME(APPLET(makemime, BB_DIR_BIN, BB_SUID_DROP)) |
202 | IF_MAN(APPLET(man, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
203 | IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 180 | IF_MATCHPATHCON(APPLET(matchpathcon, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
204 | IF_MICROCOM(APPLET(microcom, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
205 | IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) | 181 | IF_MKDIR(APPLET_NOFORK(mkdir, mkdir, BB_DIR_BIN, BB_SUID_DROP, mkdir)) |
206 | IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo)) | 182 | IF_MKFIFO(APPLET_NOEXEC(mkfifo, mkfifo, BB_DIR_USR_BIN, BB_SUID_DROP, mkfifo)) |
207 | IF_MKFS_MINIX(APPLET_ODDNAME(mkfs.minix, mkfs_minix, BB_DIR_SBIN, BB_SUID_DROP, mkfs_minix)) | 183 | IF_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: */ |
216 | IF_MOUNT(APPLET(mount, BB_DIR_BIN, IF_DESKTOP(BB_SUID_MAYBE) IF_NOT_DESKTOP(BB_SUID_DROP))) | 192 | IF_MOUNT(APPLET(mount, BB_DIR_BIN, IF_DESKTOP(BB_SUID_MAYBE) IF_NOT_DESKTOP(BB_SUID_DROP))) |
217 | IF_MOUNTPOINT(APPLET(mountpoint, BB_DIR_BIN, BB_SUID_DROP)) | ||
218 | IF_MT(APPLET(mt, BB_DIR_BIN, BB_SUID_DROP)) | ||
219 | IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP)) | 193 | IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP)) |
220 | IF_NAMEIF(APPLET(nameif, BB_DIR_SBIN, BB_SUID_DROP)) | 194 | IF_NAMEIF(APPLET(nameif, BB_DIR_SBIN, BB_SUID_DROP)) |
221 | IF_NC(APPLET(nc, BB_DIR_USR_BIN, BB_SUID_DROP)) | 195 | IF_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)) | |||
237 | IF_PS(APPLET(ps, BB_DIR_BIN, BB_SUID_DROP)) | 211 | IF_PS(APPLET(ps, BB_DIR_BIN, BB_SUID_DROP)) |
238 | IF_PSCAN(APPLET(pscan, BB_DIR_USR_BIN, BB_SUID_DROP)) | 212 | IF_PSCAN(APPLET(pscan, BB_DIR_USR_BIN, BB_SUID_DROP)) |
239 | IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd)) | 213 | IF_PWD(APPLET_NOFORK(pwd, pwd, BB_DIR_BIN, BB_SUID_DROP, pwd)) |
240 | IF_RAIDAUTORUN(APPLET(raidautorun, BB_DIR_SBIN, BB_SUID_DROP)) | ||
241 | IF_RDATE(APPLET(rdate, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 214 | IF_RDATE(APPLET(rdate, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
242 | IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 215 | IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
243 | IF_READAHEAD(APPLET(readahead, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
244 | IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP)) | 216 | IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP)) |
245 | IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 217 | IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
246 | IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP)) | 218 | IF_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)) | |||
254 | IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) | 226 | IF_ROUTE(APPLET(route, BB_DIR_SBIN, BB_SUID_DROP)) |
255 | IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 227 | IF_RTCWAKE(APPLET(rtcwake, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
256 | IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) | 228 | IF_RUNCON(APPLET(runcon, BB_DIR_USR_BIN, BB_SUID_DROP)) |
257 | IF_RUNLEVEL(APPLET(runlevel, BB_DIR_SBIN, BB_SUID_DROP)) | ||
258 | IF_RX(APPLET(rx, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
259 | IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) | 229 | IF_SCRIPT(APPLET(script, BB_DIR_USR_BIN, BB_SUID_DROP)) |
260 | IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) | 230 | IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP)) |
261 | IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 231 | IF_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)) | |||
269 | IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP)) | 239 | IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP)) |
270 | IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 240 | IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
271 | IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 241 | IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
272 | IF_SETSID(APPLET(setsid, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
273 | IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP)) | 242 | IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP)) |
274 | IF_SLATTACH(APPLET(slattach, BB_DIR_SBIN, BB_SUID_DROP)) | 243 | IF_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)) | |||
277 | IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) | 246 | IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort)) |
278 | IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) | 247 | IF_SPLIT(APPLET(split, BB_DIR_USR_BIN, BB_SUID_DROP)) |
279 | IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP)) | 248 | IF_STAT(APPLET(stat, BB_DIR_BIN, BB_SUID_DROP)) |
280 | IF_STRINGS(APPLET(strings, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
281 | IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) | 249 | IF_STTY(APPLET(stty, BB_DIR_BIN, BB_SUID_DROP)) |
282 | IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) | 250 | IF_SUM(APPLET(sum, BB_DIR_USR_BIN, BB_SUID_DROP)) |
283 | IF_SWITCH_ROOT(APPLET(switch_root, BB_DIR_SBIN, BB_SUID_DROP)) | 251 | IF_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)) | |||
294 | IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP)) | 262 | IF_TFTP(APPLET(tftp, BB_DIR_USR_BIN, BB_SUID_DROP)) |
295 | IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 263 | IF_TFTPD(APPLET(tftpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) |
296 | #endif | 264 | #endif |
297 | IF_TIME(APPLET(time, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
298 | IF_TIMEOUT(APPLET(timeout, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
299 | IF_TOP(APPLET(top, BB_DIR_USR_BIN, BB_SUID_DROP)) | 265 | IF_TOP(APPLET(top, BB_DIR_USR_BIN, BB_SUID_DROP)) |
300 | IF_TR(APPLET(tr, BB_DIR_USR_BIN, BB_SUID_DROP)) | 266 | IF_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)) | |||
303 | IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE)) | 269 | IF_TRACEROUTE6(APPLET(traceroute6, BB_DIR_USR_BIN, BB_SUID_MAYBE)) |
304 | IF_TRUE(APPLET_NOFORK(true, true, BB_DIR_BIN, BB_SUID_DROP, true)) | 270 | IF_TRUE(APPLET_NOFORK(true, true, BB_DIR_BIN, BB_SUID_DROP, true)) |
305 | IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP)) | 271 | IF_TTY(APPLET(tty, BB_DIR_USR_BIN, BB_SUID_DROP)) |
306 | IF_TTYSIZE(APPLET(ttysize, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
307 | IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP)) | 272 | IF_TUNCTL(APPLET(tunctl, BB_DIR_SBIN, BB_SUID_DROP)) |
308 | IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP)) | 273 | IF_UDHCPC(APPLET(udhcpc, BB_DIR_SBIN, BB_SUID_DROP)) |
309 | IF_UDHCPD(APPLET(udhcpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | 274 | IF_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)) | |||
318 | IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP)) | 283 | IF_UUDECODE(APPLET(uudecode, BB_DIR_USR_BIN, BB_SUID_DROP)) |
319 | IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP)) | 284 | IF_UUENCODE(APPLET(uuencode, BB_DIR_USR_BIN, BB_SUID_DROP)) |
320 | IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP)) | 285 | IF_VCONFIG(APPLET(vconfig, BB_DIR_SBIN, BB_SUID_DROP)) |
321 | IF_VOLNAME(APPLET(volname, BB_DIR_USR_BIN, BB_SUID_DROP)) | ||
322 | IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) | 286 | IF_WATCH(APPLET(watch, BB_DIR_BIN, BB_SUID_DROP)) |
323 | IF_WATCHDOG(APPLET(watchdog, BB_DIR_SBIN, BB_SUID_DROP)) | ||
324 | IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) | 287 | IF_WC(APPLET(wc, BB_DIR_USR_BIN, BB_SUID_DROP)) |
325 | IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami)) | 288 | IF_WHOAMI(APPLET_NOFORK(whoami, whoami, BB_DIR_USR_BIN, BB_SUID_DROP, whoami)) |
326 | IF_YES(APPLET_NOFORK(yes, yes, BB_DIR_USR_BIN, BB_SUID_DROP, yes)) | 289 | IF_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 @@ | |||
7 | lib-y:= | 7 | lib-y:= |
8 | 8 | ||
9 | INSERT | 9 | INSERT |
10 | lib-$(CONFIG_ADJTIMEX) += adjtimex.o | ||
11 | lib-$(CONFIG_BBCONFIG) += bbconfig.o | ||
12 | lib-$(CONFIG_BEEP) += beep.o | ||
13 | lib-$(CONFIG_CHAT) += chat.o | ||
14 | lib-$(CONFIG_CHRT) += chrt.o | ||
15 | lib-$(CONFIG_CRONTAB) += crontab.o | ||
16 | lib-$(CONFIG_DC) += dc.o | ||
17 | lib-$(CONFIG_DEVFSD) += devfsd.o | ||
18 | lib-$(CONFIG_DEVMEM) += devmem.o | ||
19 | lib-$(CONFIG_EJECT) += eject.o | ||
20 | lib-$(CONFIG_FBSPLASH) += fbsplash.o | ||
21 | lib-$(CONFIG_FLASHCP) += flashcp.o | ||
22 | lib-$(CONFIG_FLASH_ERASEALL) += flash_eraseall.o | ||
23 | lib-$(CONFIG_FLASH_LOCK) += flash_lock_unlock.o | ||
24 | lib-$(CONFIG_FLASH_UNLOCK) += flash_lock_unlock.o | ||
25 | lib-$(CONFIG_IONICE) += ionice.o | ||
26 | lib-$(CONFIG_HDPARM) += hdparm.o | ||
27 | lib-$(CONFIG_INOTIFYD) += inotifyd.o | ||
28 | 10 | ||
29 | ifeq ($(CONFIG_FEATURE_LAST_FANCY),y) | ||
30 | lib-$(CONFIG_FEATURE_LAST_FANCY) += last_fancy.o | ||
31 | else | ||
32 | lib-$(CONFIG_LAST) += last.o | ||
33 | endif | ||
34 | 11 | ||
35 | lib-$(CONFIG_LESS) += less.o | ||
36 | lib-$(CONFIG_MAKEDEVS) += makedevs.o | ||
37 | lib-$(CONFIG_MAN) += man.o | ||
38 | lib-$(CONFIG_MICROCOM) += microcom.o | ||
39 | lib-$(CONFIG_MOUNTPOINT) += mountpoint.o | ||
40 | lib-$(CONFIG_MT) += mt.o | ||
41 | lib-$(CONFIG_RAIDAUTORUN) += raidautorun.o | ||
42 | lib-$(CONFIG_READAHEAD) += readahead.o | ||
43 | lib-$(CONFIG_RUNLEVEL) += runlevel.o | ||
44 | lib-$(CONFIG_RX) += rx.o | ||
45 | lib-$(CONFIG_SETSID) += setsid.o | ||
46 | lib-$(CONFIG_STRINGS) += strings.o | ||
47 | lib-$(CONFIG_TIME) += time.o | ||
48 | lib-$(CONFIG_TIMEOUT) += timeout.o | ||
49 | lib-$(CONFIG_TTYSIZE) += ttysize.o | ||
50 | lib-$(CONFIG_VOLNAME) += volname.o | ||
51 | lib-$(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" |