diff options
-rw-r--r-- | include/applets.src.h | 3 | ||||
-rw-r--r-- | printutils/Config.src | 18 | ||||
-rw-r--r-- | printutils/Kbuild.src | 4 | ||||
-rw-r--r-- | printutils/lpd.c | 9 | ||||
-rw-r--r-- | printutils/lpr.c | 17 |
5 files changed, 27 insertions, 24 deletions
diff --git a/include/applets.src.h b/include/applets.src.h index d243d89e1..9c4f9daa0 100644 --- a/include/applets.src.h +++ b/include/applets.src.h | |||
@@ -209,9 +209,6 @@ IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP)) | |||
209 | IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE)) | 209 | IF_LOGIN(APPLET(login, BB_DIR_BIN, BB_SUID_REQUIRE)) |
210 | IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname)) | 210 | IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname)) |
211 | IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP)) | 211 | IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP)) |
212 | IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
213 | IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq)) | ||
214 | IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr)) | ||
215 | IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) | 212 | IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls)) |
216 | IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) | 213 | IF_LSPCI(APPLET(lspci, BB_DIR_USR_BIN, BB_SUID_DROP)) |
217 | IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) | 214 | IF_LSUSB(APPLET(lsusb, BB_DIR_USR_BIN, BB_SUID_DROP)) |
diff --git a/printutils/Config.src b/printutils/Config.src index cc4ab8d28..e53b9d093 100644 --- a/printutils/Config.src +++ b/printutils/Config.src | |||
@@ -7,22 +7,4 @@ menu "Print Utilities" | |||
7 | 7 | ||
8 | INSERT | 8 | INSERT |
9 | 9 | ||
10 | config LPD | ||
11 | bool "lpd" | ||
12 | default y | ||
13 | help | ||
14 | lpd is a print spooling daemon. | ||
15 | |||
16 | config LPR | ||
17 | bool "lpr" | ||
18 | default y | ||
19 | help | ||
20 | lpr sends files (or standard input) to a print spooling daemon. | ||
21 | |||
22 | config LPQ | ||
23 | bool "lpq" | ||
24 | default y | ||
25 | help | ||
26 | lpq is a print spool queue examination and manipulation program. | ||
27 | |||
28 | endmenu | 10 | endmenu |
diff --git a/printutils/Kbuild.src b/printutils/Kbuild.src index 194fe01d6..10c823063 100644 --- a/printutils/Kbuild.src +++ b/printutils/Kbuild.src | |||
@@ -4,6 +4,4 @@ | |||
4 | 4 | ||
5 | lib-y := | 5 | lib-y := |
6 | 6 | ||
7 | lib-$(CONFIG_LPD) += lpd.o | 7 | INSERT |
8 | lib-$(CONFIG_LPR) += lpr.o | ||
9 | lib-$(CONFIG_LPQ) += lpr.o | ||
diff --git a/printutils/lpd.c b/printutils/lpd.c index c98bbb347..882393436 100644 --- a/printutils/lpd.c +++ b/printutils/lpd.c | |||
@@ -69,6 +69,15 @@ | |||
69 | * cat ./"$DATAFILE" >/dev/lp0 | 69 | * cat ./"$DATAFILE" >/dev/lp0 |
70 | * mv -f ./"$DATAFILE" save/ | 70 | * mv -f ./"$DATAFILE" save/ |
71 | */ | 71 | */ |
72 | //config:config LPD | ||
73 | //config: bool "lpd" | ||
74 | //config: default y | ||
75 | //config: help | ||
76 | //config: lpd is a print spooling daemon. | ||
77 | |||
78 | //applet:IF_LPD(APPLET(lpd, BB_DIR_USR_SBIN, BB_SUID_DROP)) | ||
79 | |||
80 | //kbuild:lib-$(CONFIG_LPD) += lpd.o | ||
72 | 81 | ||
73 | //usage:#define lpd_trivial_usage | 82 | //usage:#define lpd_trivial_usage |
74 | //usage: "SPOOLDIR [HELPER [ARGS]]" | 83 | //usage: "SPOOLDIR [HELPER [ARGS]]" |
diff --git a/printutils/lpr.c b/printutils/lpr.c index 70cda7717..ed6a84a93 100644 --- a/printutils/lpr.c +++ b/printutils/lpr.c | |||
@@ -11,6 +11,23 @@ | |||
11 | * | 11 | * |
12 | * See RFC 1179 for protocol description. | 12 | * See RFC 1179 for protocol description. |
13 | */ | 13 | */ |
14 | //config:config LPR | ||
15 | //config: bool "lpr" | ||
16 | //config: default y | ||
17 | //config: help | ||
18 | //config: lpr sends files (or standard input) to a print spooling daemon. | ||
19 | //config: | ||
20 | //config:config LPQ | ||
21 | //config: bool "lpq" | ||
22 | //config: default y | ||
23 | //config: help | ||
24 | //config: lpq is a print spool queue examination and manipulation program. | ||
25 | |||
26 | //applet:IF_LPQ(APPLET_ODDNAME(lpq, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpq)) | ||
27 | //applet:IF_LPR(APPLET_ODDNAME(lpr, lpqr, BB_DIR_USR_BIN, BB_SUID_DROP, lpr)) | ||
28 | |||
29 | //kbuild:lib-$(CONFIG_LPR) += lpr.o | ||
30 | //kbuild:lib-$(CONFIG_LPQ) += lpr.o | ||
14 | 31 | ||
15 | //usage:#define lpr_trivial_usage | 32 | //usage:#define lpr_trivial_usage |
16 | //usage: "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..." | 33 | //usage: "-P queue[@host[:port]] -U USERNAME -J TITLE -Vmh [FILE]..." |