Convert all console-tools/* applets to "new style" applet definitions
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
c19f7584e1
commit
6d9329935c
@ -7,170 +7,4 @@ menu "Console Utilities"
|
|||||||
|
|
||||||
INSERT
|
INSERT
|
||||||
|
|
||||||
config CHVT
|
|
||||||
bool "chvt"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program is used to change to another terminal.
|
|
||||||
Example: chvt 4 (change to terminal /dev/tty4)
|
|
||||||
|
|
||||||
config FGCONSOLE
|
|
||||||
bool "fgconsole"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program prints active (foreground) console number.
|
|
||||||
|
|
||||||
config CLEAR
|
|
||||||
bool "clear"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This program clears the terminal screen.
|
|
||||||
|
|
||||||
config DEALLOCVT
|
|
||||||
bool "deallocvt"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program deallocates unused virtual consoles.
|
|
||||||
|
|
||||||
config DUMPKMAP
|
|
||||||
bool "dumpkmap"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program dumps the kernel's keyboard translation table to
|
|
||||||
stdout, in binary format. You can then use loadkmap to load it.
|
|
||||||
|
|
||||||
config KBD_MODE
|
|
||||||
bool "kbd_mode"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program reports and sets keyboard mode.
|
|
||||||
|
|
||||||
config LOADFONT
|
|
||||||
bool "loadfont"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program loads a console font from standard input.
|
|
||||||
|
|
||||||
config LOADKMAP
|
|
||||||
bool "loadkmap"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program loads a keyboard translation table from
|
|
||||||
standard input.
|
|
||||||
|
|
||||||
config OPENVT
|
|
||||||
bool "openvt"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program is used to start a command on an unused
|
|
||||||
virtual terminal.
|
|
||||||
|
|
||||||
config RESET
|
|
||||||
bool "reset"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This program is used to reset the terminal screen, if it
|
|
||||||
gets messed up.
|
|
||||||
|
|
||||||
config RESIZE
|
|
||||||
bool "resize"
|
|
||||||
default y
|
|
||||||
help
|
|
||||||
This program is used to (re)set the width and height of your current
|
|
||||||
terminal.
|
|
||||||
|
|
||||||
config FEATURE_RESIZE_PRINT
|
|
||||||
bool "Print environment variables"
|
|
||||||
default y
|
|
||||||
depends on RESIZE
|
|
||||||
help
|
|
||||||
Prints the newly set size (number of columns and rows) of
|
|
||||||
the terminal.
|
|
||||||
E.g.:
|
|
||||||
COLUMNS=80;LINES=44;export COLUMNS LINES;
|
|
||||||
|
|
||||||
config SETCONSOLE
|
|
||||||
bool "setconsole"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program redirects the system console to another device,
|
|
||||||
like the current tty while logged in via telnet.
|
|
||||||
|
|
||||||
config FEATURE_SETCONSOLE_LONG_OPTIONS
|
|
||||||
bool "Enable long options"
|
|
||||||
default y
|
|
||||||
depends on SETCONSOLE && LONG_OPTS
|
|
||||||
help
|
|
||||||
Support long options for the setconsole applet.
|
|
||||||
|
|
||||||
config SETFONT
|
|
||||||
bool "setfont"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
Allows to load console screen map. Useful for i18n.
|
|
||||||
|
|
||||||
config FEATURE_SETFONT_TEXTUAL_MAP
|
|
||||||
bool "Support reading textual screen maps"
|
|
||||||
default y
|
|
||||||
depends on SETFONT
|
|
||||||
help
|
|
||||||
Support reading textual screen maps.
|
|
||||||
|
|
||||||
config DEFAULT_SETFONT_DIR
|
|
||||||
string "Default directory for console-tools files"
|
|
||||||
default ""
|
|
||||||
depends on SETFONT
|
|
||||||
help
|
|
||||||
Directory to use if setfont's params are simple filenames
|
|
||||||
(not /path/to/file or ./file). Default is "" (no default directory).
|
|
||||||
|
|
||||||
config SETKEYCODES
|
|
||||||
bool "setkeycodes"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program loads entries into the kernel's scancode-to-keycode
|
|
||||||
map, allowing unusual keyboards to generate usable keycodes.
|
|
||||||
|
|
||||||
config SETLOGCONS
|
|
||||||
bool "setlogcons"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
This program redirects the output console of kernel messages.
|
|
||||||
|
|
||||||
config SHOWKEY
|
|
||||||
bool "showkey"
|
|
||||||
default y
|
|
||||||
select PLATFORM_LINUX
|
|
||||||
help
|
|
||||||
Shows keys pressed.
|
|
||||||
|
|
||||||
comment "Common options for loadfont and setfont"
|
|
||||||
depends on LOADFONT || SETFONT
|
|
||||||
|
|
||||||
config FEATURE_LOADFONT_PSF2
|
|
||||||
bool "Support for PSF2 console fonts"
|
|
||||||
default y
|
|
||||||
depends on LOADFONT || SETFONT
|
|
||||||
help
|
|
||||||
Support PSF2 console fonts.
|
|
||||||
|
|
||||||
config FEATURE_LOADFONT_RAW
|
|
||||||
bool "Support for old (raw) console fonts"
|
|
||||||
default y
|
|
||||||
depends on LOADFONT || SETFONT
|
|
||||||
help
|
|
||||||
Support old (raw) console fonts.
|
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
@ -7,19 +7,3 @@
|
|||||||
lib-y:=
|
lib-y:=
|
||||||
|
|
||||||
INSERT
|
INSERT
|
||||||
lib-$(CONFIG_CHVT) += chvt.o
|
|
||||||
lib-$(CONFIG_FGCONSOLE) += fgconsole.o
|
|
||||||
lib-$(CONFIG_CLEAR) += clear.o
|
|
||||||
lib-$(CONFIG_DEALLOCVT) += deallocvt.o
|
|
||||||
lib-$(CONFIG_DUMPKMAP) += dumpkmap.o
|
|
||||||
lib-$(CONFIG_SETCONSOLE) += setconsole.o
|
|
||||||
lib-$(CONFIG_KBD_MODE) += kbd_mode.o
|
|
||||||
lib-$(CONFIG_LOADFONT) += loadfont.o
|
|
||||||
lib-$(CONFIG_LOADKMAP) += loadkmap.o
|
|
||||||
lib-$(CONFIG_OPENVT) += openvt.o
|
|
||||||
lib-$(CONFIG_RESET) += reset.o
|
|
||||||
lib-$(CONFIG_RESIZE) += resize.o
|
|
||||||
lib-$(CONFIG_SETFONT) += loadfont.o
|
|
||||||
lib-$(CONFIG_SETKEYCODES) += setkeycodes.o
|
|
||||||
lib-$(CONFIG_SETLOGCONS) += setlogcons.o
|
|
||||||
lib-$(CONFIG_SHOWKEY) += showkey.o
|
|
||||||
|
@ -6,6 +6,17 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config CHVT
|
||||||
|
//config: bool "chvt"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program is used to change to another terminal.
|
||||||
|
//config: Example: chvt 4 (change to terminal /dev/tty4)
|
||||||
|
|
||||||
|
//applet:IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_CHVT) += chvt.o
|
||||||
|
|
||||||
//usage:#define chvt_trivial_usage
|
//usage:#define chvt_trivial_usage
|
||||||
//usage: "N"
|
//usage: "N"
|
||||||
|
@ -6,6 +6,15 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config CLEAR
|
||||||
|
//config: bool "clear"
|
||||||
|
//config: default y
|
||||||
|
//config: help
|
||||||
|
//config: This program clears the terminal screen.
|
||||||
|
|
||||||
|
//applet:IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_CLEAR) += clear.o
|
||||||
|
|
||||||
//usage:#define clear_trivial_usage
|
//usage:#define clear_trivial_usage
|
||||||
//usage: ""
|
//usage: ""
|
||||||
|
@ -7,8 +7,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config DEALLOCVT
|
||||||
|
//config: bool "deallocvt"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program deallocates unused virtual consoles.
|
||||||
|
|
||||||
/* no options, no getopt */
|
//applet:IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_DEALLOCVT) += deallocvt.o
|
||||||
|
|
||||||
//usage:#define deallocvt_trivial_usage
|
//usage:#define deallocvt_trivial_usage
|
||||||
//usage: "[N]"
|
//usage: "[N]"
|
||||||
|
@ -7,7 +7,17 @@
|
|||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
/* no options, no getopt */
|
//config:config DUMPKMAP
|
||||||
|
//config: bool "dumpkmap"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program dumps the kernel's keyboard translation table to
|
||||||
|
//config: stdout, in binary format. You can then use loadkmap to load it.
|
||||||
|
|
||||||
|
//applet:IF_DUMPKMAP(APPLET(dumpkmap, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_DUMPKMAP) += dumpkmap.o
|
||||||
|
|
||||||
//usage:#define dumpkmap_trivial_usage
|
//usage:#define dumpkmap_trivial_usage
|
||||||
//usage: "> keymap"
|
//usage: "> keymap"
|
||||||
|
@ -6,6 +6,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config FGCONSOLE
|
||||||
|
//config: bool "fgconsole"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program prints active (foreground) console number.
|
||||||
|
|
||||||
|
//applet:IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_FGCONSOLE) += fgconsole.o
|
||||||
|
|
||||||
//usage:#define fgconsole_trivial_usage
|
//usage:#define fgconsole_trivial_usage
|
||||||
//usage: ""
|
//usage: ""
|
||||||
|
@ -8,6 +8,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config KBD_MODE
|
||||||
|
//config: bool "kbd_mode"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program reports and sets keyboard mode.
|
||||||
|
|
||||||
|
//applet:IF_KBD_MODE(APPLET(kbd_mode, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_KBD_MODE) += kbd_mode.o
|
||||||
|
|
||||||
//usage:#define kbd_mode_trivial_usage
|
//usage:#define kbd_mode_trivial_usage
|
||||||
//usage: "[-a|k|s|u] [-C TTY]"
|
//usage: "[-a|k|s|u] [-C TTY]"
|
||||||
|
@ -9,6 +9,57 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config LOADFONT
|
||||||
|
//config: bool "loadfont"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program loads a console font from standard input.
|
||||||
|
//config:
|
||||||
|
//config:config SETFONT
|
||||||
|
//config: bool "setfont"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: Allows to load console screen map. Useful for i18n.
|
||||||
|
//config:
|
||||||
|
//config:config FEATURE_SETFONT_TEXTUAL_MAP
|
||||||
|
//config: bool "Support reading textual screen maps"
|
||||||
|
//config: default y
|
||||||
|
//config: depends on SETFONT
|
||||||
|
//config: help
|
||||||
|
//config: Support reading textual screen maps.
|
||||||
|
//config:
|
||||||
|
//config:config DEFAULT_SETFONT_DIR
|
||||||
|
//config: string "Default directory for console-tools files"
|
||||||
|
//config: default ""
|
||||||
|
//config: depends on SETFONT
|
||||||
|
//config: help
|
||||||
|
//config: Directory to use if setfont's params are simple filenames
|
||||||
|
//config: (not /path/to/file or ./file). Default is "" (no default directory).
|
||||||
|
//config:
|
||||||
|
//config:comment "Common options for loadfont and setfont"
|
||||||
|
//config: depends on LOADFONT || SETFONT
|
||||||
|
//config:
|
||||||
|
//config:config FEATURE_LOADFONT_PSF2
|
||||||
|
//config: bool "Support for PSF2 console fonts"
|
||||||
|
//config: default y
|
||||||
|
//config: depends on LOADFONT || SETFONT
|
||||||
|
//config: help
|
||||||
|
//config: Support PSF2 console fonts.
|
||||||
|
//config:
|
||||||
|
//config:config FEATURE_LOADFONT_RAW
|
||||||
|
//config: bool "Support for old (raw) console fonts"
|
||||||
|
//config: default y
|
||||||
|
//config: depends on LOADFONT || SETFONT
|
||||||
|
//config: help
|
||||||
|
//config: Support old (raw) console fonts.
|
||||||
|
|
||||||
|
//applet:IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
|
//applet:IF_SETFONT(APPLET(setfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_LOADFONT) += loadfont.o
|
||||||
|
//kbuild:lib-$(CONFIG_SETFONT) += loadfont.o
|
||||||
|
|
||||||
//usage:#define loadfont_trivial_usage
|
//usage:#define loadfont_trivial_usage
|
||||||
//usage: "< font"
|
//usage: "< font"
|
||||||
|
@ -6,6 +6,17 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config LOADKMAP
|
||||||
|
//config: bool "loadkmap"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program loads a keyboard translation table from
|
||||||
|
//config: standard input.
|
||||||
|
|
||||||
|
//applet:IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_LOADKMAP) += loadkmap.o
|
||||||
|
|
||||||
//usage:#define loadkmap_trivial_usage
|
//usage:#define loadkmap_trivial_usage
|
||||||
//usage: "< keymap"
|
//usage: "< keymap"
|
||||||
|
@ -7,6 +7,17 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config OPENVT
|
||||||
|
//config: bool "openvt"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program is used to start a command on an unused
|
||||||
|
//config: virtual terminal.
|
||||||
|
|
||||||
|
//applet:IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_OPENVT) += openvt.o
|
||||||
|
|
||||||
//usage:#define openvt_trivial_usage
|
//usage:#define openvt_trivial_usage
|
||||||
//usage: "[-c N] [-sw] [PROG ARGS]"
|
//usage: "[-c N] [-sw] [PROG ARGS]"
|
||||||
|
@ -7,9 +7,18 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
/* "Standard" version of this tool is in ncurses package */
|
||||||
|
|
||||||
/* BTW, which "standard" package has this utility? It doesn't seem
|
//config:config RESET
|
||||||
* to be ncurses, coreutils, console-tools... then what? */
|
//config: bool "reset"
|
||||||
|
//config: default y
|
||||||
|
//config: help
|
||||||
|
//config: This program is used to reset the terminal screen, if it
|
||||||
|
//config: gets messed up.
|
||||||
|
|
||||||
|
//applet:IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_RESET) += reset.o
|
||||||
|
|
||||||
//usage:#define reset_trivial_usage
|
//usage:#define reset_trivial_usage
|
||||||
//usage: ""
|
//usage: ""
|
||||||
|
@ -6,7 +6,26 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
/* no options, no getopt */
|
//config:config RESIZE
|
||||||
|
//config: bool "resize"
|
||||||
|
//config: default y
|
||||||
|
//config: help
|
||||||
|
//config: This program is used to (re)set the width and height of your current
|
||||||
|
//config: terminal.
|
||||||
|
//config:
|
||||||
|
//config:config FEATURE_RESIZE_PRINT
|
||||||
|
//config: bool "Print environment variables"
|
||||||
|
//config: default y
|
||||||
|
//config: depends on RESIZE
|
||||||
|
//config: help
|
||||||
|
//config: Prints the newly set size (number of columns and rows) of
|
||||||
|
//config: the terminal.
|
||||||
|
//config: E.g.:
|
||||||
|
//config: COLUMNS=80;LINES=44;export COLUMNS LINES;
|
||||||
|
|
||||||
|
//applet:IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_RESIZE) += resize.o
|
||||||
|
|
||||||
//usage:#define resize_trivial_usage
|
//usage:#define resize_trivial_usage
|
||||||
//usage: ""
|
//usage: ""
|
||||||
|
@ -7,6 +7,24 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config SETCONSOLE
|
||||||
|
//config: bool "setconsole"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program redirects the system console to another device,
|
||||||
|
//config: like the current tty while logged in via telnet.
|
||||||
|
//config:
|
||||||
|
//config:config FEATURE_SETCONSOLE_LONG_OPTIONS
|
||||||
|
//config: bool "Enable long options"
|
||||||
|
//config: default y
|
||||||
|
//config: depends on SETCONSOLE && LONG_OPTS
|
||||||
|
//config: help
|
||||||
|
//config: Support long options for the setconsole applet.
|
||||||
|
|
||||||
|
//applet:IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_SETCONSOLE) += setconsole.o
|
||||||
|
|
||||||
//usage:#define setconsole_trivial_usage
|
//usage:#define setconsole_trivial_usage
|
||||||
//usage: "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
|
//usage: "[-r" IF_FEATURE_SETCONSOLE_LONG_OPTIONS("|--reset") "] [DEVICE]"
|
||||||
|
@ -8,6 +8,17 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config SETKEYCODES
|
||||||
|
//config: bool "setkeycodes"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program loads entries into the kernel's scancode-to-keycode
|
||||||
|
//config: map, allowing unusual keyboards to generate usable keycodes.
|
||||||
|
|
||||||
|
//applet:IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_SETKEYCODES) += setkeycodes.o
|
||||||
|
|
||||||
//usage:#define setkeycodes_trivial_usage
|
//usage:#define setkeycodes_trivial_usage
|
||||||
//usage: "SCANCODE KEYCODE..."
|
//usage: "SCANCODE KEYCODE..."
|
||||||
|
@ -8,6 +8,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
* Licensed under GPLv2 or later, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config SETLOGCONS
|
||||||
|
//config: bool "setlogcons"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: This program redirects the output console of kernel messages.
|
||||||
|
|
||||||
|
//applet:IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_SETLOGCONS) += setlogcons.o
|
||||||
|
|
||||||
//usage:#define setlogcons_trivial_usage
|
//usage:#define setlogcons_trivial_usage
|
||||||
//usage: "[N]"
|
//usage: "[N]"
|
||||||
|
@ -6,6 +6,16 @@
|
|||||||
*
|
*
|
||||||
* Licensed under GPLv2, see file LICENSE in this source tree.
|
* Licensed under GPLv2, see file LICENSE in this source tree.
|
||||||
*/
|
*/
|
||||||
|
//config:config SHOWKEY
|
||||||
|
//config: bool "showkey"
|
||||||
|
//config: default y
|
||||||
|
//config: select PLATFORM_LINUX
|
||||||
|
//config: help
|
||||||
|
//config: Shows keys pressed.
|
||||||
|
|
||||||
|
//applet:IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
|
|
||||||
|
//kbuild:lib-$(CONFIG_SHOWKEY) += showkey.o
|
||||||
|
|
||||||
//usage:#define showkey_trivial_usage
|
//usage:#define showkey_trivial_usage
|
||||||
//usage: "[-a | -k | -s]"
|
//usage: "[-a | -k | -s]"
|
||||||
|
@ -86,21 +86,17 @@ IF_CHGRP(APPLET_NOEXEC(chgrp, chgrp, BB_DIR_BIN, BB_SUID_DROP, chgrp))
|
|||||||
IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod))
|
IF_CHMOD(APPLET_NOEXEC(chmod, chmod, BB_DIR_BIN, BB_SUID_DROP, chmod))
|
||||||
IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown))
|
IF_CHOWN(APPLET_NOEXEC(chown, chown, BB_DIR_BIN, BB_SUID_DROP, chown))
|
||||||
IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_CHROOT(APPLET(chroot, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_CHVT(APPLET(chvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum))
|
IF_CKSUM(APPLET_NOEXEC(cksum, cksum, BB_DIR_USR_BIN, BB_SUID_DROP, cksum))
|
||||||
IF_CLEAR(APPLET(clear, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_COMM(APPLET(comm, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
|
IF_CP(APPLET_NOEXEC(cp, cp, BB_DIR_BIN, BB_SUID_DROP, cp))
|
||||||
IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut))
|
IF_CUT(APPLET_NOEXEC(cut, cut, BB_DIR_USR_BIN, BB_SUID_DROP, cut))
|
||||||
IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd))
|
IF_DD(APPLET_NOEXEC(dd, dd, BB_DIR_BIN, BB_SUID_DROP, dd))
|
||||||
IF_DEALLOCVT(APPLET(deallocvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP))
|
IF_DF(APPLET(df, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_DHCPRELAY(APPLET(dhcprelay, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname))
|
IF_DIRNAME(APPLET_NOFORK(dirname, dirname, BB_DIR_USR_BIN, BB_SUID_DROP, dirname))
|
||||||
IF_DMESG(APPLET(dmesg, BB_DIR_BIN, BB_SUID_DROP))
|
IF_DMESG(APPLET(dmesg, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
IF_DOS2UNIX(APPLET_NOEXEC(dos2unix, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, dos2unix))
|
IF_DOS2UNIX(APPLET_NOEXEC(dos2unix, dos2unix, BB_DIR_USR_BIN, BB_SUID_DROP, dos2unix))
|
||||||
IF_DU(APPLET(du, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_DU(APPLET(du, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_DUMPKMAP(APPLET(dumpkmap, BB_DIR_BIN, BB_SUID_DROP))
|
|
||||||
IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_DUMPLEASES(APPLET(dumpleases, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
//IF_E2FSCK(APPLET(e2fsck, BB_DIR_SBIN, BB_SUID_DROP))
|
//IF_E2FSCK(APPLET(e2fsck, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label))
|
//IF_E2LABEL(APPLET_ODDNAME(e2label, tune2fs, BB_DIR_SBIN, BB_SUID_DROP, e2label))
|
||||||
@ -113,7 +109,6 @@ IF_FBSET(APPLET(fbset, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
|||||||
IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush))
|
IF_FDFLUSH(APPLET_ODDNAME(fdflush, freeramdisk, BB_DIR_BIN, BB_SUID_DROP, fdflush))
|
||||||
IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_FDFORMAT(APPLET(fdformat, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP))
|
IF_FDISK(APPLET(fdisk, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
IF_FGCONSOLE(APPLET(fgconsole, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
/* Benefits from suid root: better access to /dev/BLOCKDEVs: */
|
/* Benefits from suid root: better access to /dev/BLOCKDEVs: */
|
||||||
IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE))
|
IF_FINDFS(APPLET(findfs, BB_DIR_SBIN, BB_SUID_MAYBE))
|
||||||
IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_FLOCK(APPLET(flock, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
@ -133,12 +128,9 @@ IF_HWCLOCK(APPLET(hwclock, BB_DIR_SBIN, BB_SUID_DROP))
|
|||||||
IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_INSTALL(APPLET(install, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_IPCRM(APPLET(ipcrm, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_IPCRM(APPLET(ipcrm, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_IPCS(APPLET(ipcs, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_IPCS(APPLET(ipcs, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_KBD_MODE(APPLET(kbd_mode, BB_DIR_BIN, BB_SUID_DROP))
|
|
||||||
//IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length))
|
//IF_LENGTH(APPLET_NOFORK(length, length, BB_DIR_USR_BIN, BB_SUID_DROP, length))
|
||||||
IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln))
|
IF_LN(APPLET_NOEXEC(ln, ln, BB_DIR_BIN, BB_SUID_DROP, ln))
|
||||||
IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_LOAD_POLICY(APPLET(load_policy, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_LOADFONT(APPLET(loadfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
|
||||||
IF_LOADKMAP(APPLET(loadkmap, BB_DIR_SBIN, BB_SUID_DROP))
|
|
||||||
IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname))
|
IF_LOGNAME(APPLET_NOFORK(logname, logname, BB_DIR_USR_BIN, BB_SUID_DROP, logname))
|
||||||
IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
|
IF_LOSETUP(APPLET(losetup, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
|
IF_LS(APPLET_NOEXEC(ls, ls, BB_DIR_BIN, BB_SUID_DROP, ls))
|
||||||
@ -161,7 +153,6 @@ IF_MV(APPLET(mv, BB_DIR_BIN, BB_SUID_DROP))
|
|||||||
IF_NICE(APPLET(nice, BB_DIR_BIN, BB_SUID_DROP))
|
IF_NICE(APPLET(nice, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
IF_NOHUP(APPLET(nohup, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_NOHUP(APPLET(nohup, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_OD(APPLET(od, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_OD(APPLET(od, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_OPENVT(APPLET(openvt, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
//IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP))
|
//IF_PARSE(APPLET(parse, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
|
IF_PIVOT_ROOT(APPLET(pivot_root, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
IF_PRINTENV(APPLET_NOFORK(printenv, printenv, BB_DIR_BIN, BB_SUID_DROP, printenv))
|
IF_PRINTENV(APPLET_NOFORK(printenv, printenv, BB_DIR_BIN, BB_SUID_DROP, printenv))
|
||||||
@ -172,8 +163,6 @@ IF_RDEV(APPLET(rdev, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
|||||||
IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_READLINK(APPLET(readlink, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_READPROFILE(APPLET(readprofile, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP))
|
IF_REALPATH(APPLET(realpath, BB_DIR_USR_BIN, BB_SUID_DROP))
|
||||||
IF_RESET(APPLET(reset, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_RESIZE(APPLET(resize, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon))
|
IF_RESTORECON(APPLET_ODDNAME(restorecon, setfiles, BB_DIR_SBIN, BB_SUID_DROP, restorecon))
|
||||||
IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm))
|
IF_RM(APPLET_NOFORK(rm, rm, BB_DIR_BIN, BB_SUID_DROP, rm))
|
||||||
IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir))
|
IF_RMDIR(APPLET_NOFORK(rmdir, rmdir, BB_DIR_BIN, BB_SUID_DROP, rmdir))
|
||||||
@ -184,14 +173,9 @@ IF_SCRIPTREPLAY(APPLET(scriptreplay, BB_DIR_BIN, BB_SUID_DROP))
|
|||||||
IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_SELINUXENABLED(APPLET(selinuxenabled, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq))
|
IF_SEQ(APPLET_NOFORK(seq, seq, BB_DIR_USR_BIN, BB_SUID_DROP, seq))
|
||||||
IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_SESTATUS(APPLET(sestatus, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_SETCONSOLE(APPLET(setconsole, BB_DIR_SBIN, BB_SUID_DROP))
|
|
||||||
IF_SETENFORCE(APPLET(setenforce, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_SETENFORCE(APPLET(setenforce, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_SETFILES(APPLET(setfiles, BB_DIR_SBIN, BB_SUID_DROP))
|
IF_SETFILES(APPLET(setfiles, BB_DIR_SBIN, BB_SUID_DROP))
|
||||||
IF_SETFONT(APPLET(setfont, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
|
||||||
IF_SETKEYCODES(APPLET(setkeycodes, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
IF_SETLOGCONS(APPLET(setlogcons, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
|
||||||
IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
IF_SETSEBOOL(APPLET(setsebool, BB_DIR_USR_SBIN, BB_SUID_DROP))
|
||||||
IF_SHOWKEY(APPLET(showkey, BB_DIR_USR_BIN, BB_SUID_DROP))
|
|
||||||
/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */
|
/* Do not make this applet NOFORK. It breaks ^C-ing of pauses in shells: */
|
||||||
IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP))
|
IF_SLEEP(APPLET(sleep, BB_DIR_BIN, BB_SUID_DROP))
|
||||||
IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort))
|
IF_SORT(APPLET_NOEXEC(sort, sort, BB_DIR_USR_BIN, BB_SUID_DROP, sort))
|
||||||
|
Loading…
Reference in New Issue
Block a user