summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorSouf Oued <souf_oued@yahoo.fr>2009-12-05 17:56:25 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-05 17:56:25 +0100
commit982bc7176d04d9d3e2b40c4ddba24eab9f02dc4d (patch)
tree83eb0a5773b6cfa3fb383165bc7fb188a9acd4ec /include
parentf92874e747dae948fdfacf53537f554ccee7bd54 (diff)
lspci: new applet. +573 bytes
Signed-off-by: Souf Oued <souf_oued@yahoo.fr> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index d1a84eeaf..7d5d4406c 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -246,6 +246,7 @@ IF_LS(APPLET_NOEXEC(ls, ls, _BB_DIR_BIN, _BB_SUID_DROP, ls))
IF_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_DROP))
IF_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, _BB_DIR_SBIN, _BB_SUID_DROP, modprobe))
+IF_LSPCI(APPLET(lspci, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_DROP, lzmacat))
IF_LZOP(APPLET(lzop, _BB_DIR_BIN, _BB_SUID_DROP))
IF_LZOP(APPLET_ODDNAME(lzopcat, lzop, _BB_DIR_USR_BIN, _BB_SUID_DROP, lzopcat))
diff --git a/include/usage.h b/include/usage.h
index 1505ac306..6b2738407 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -2502,6 +2502,14 @@
#define lsmod_full_usage "\n\n" \
"List the currently loaded kernel modules"
+#define lspci_trivial_usage \
+ "[-mk]"
+#define lspci_full_usage "\n\n" \
+ "List all PCI devices" \
+ "\n" \
+ "\n -m Parseable output" \
+ "\n -k Show driver" \
+
#if ENABLE_FEATURE_MAKEDEVS_LEAF
#define makedevs_trivial_usage \
"NAME TYPE MAJOR MINOR FIRST LAST [s]"