aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2018-11-28 10:28:18 +0000
committerRon Yorston <rmy@pobox.com>2018-11-28 10:28:18 +0000
commit2a69a2200a141c1504b662eca64b802cdab71b12 (patch)
treeeab0cc01852db237a26052a83c8f582ed92b7cd9 /util-linux
parent97ca1f4b955f486cd26461cb09185335483d2921 (diff)
parent572dfb8e78323b9837f7c5e3369ee233a440b8f2 (diff)
downloadbusybox-w32-2a69a2200a141c1504b662eca64b802cdab71b12.tar.gz
busybox-w32-2a69a2200a141c1504b662eca64b802cdab71b12.tar.bz2
busybox-w32-2a69a2200a141c1504b662eca64b802cdab71b12.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/nologin.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/util-linux/nologin.c b/util-linux/nologin.c
new file mode 100644
index 000000000..e4b192508
--- /dev/null
+++ b/util-linux/nologin.c
@@ -0,0 +1,27 @@
1//config:config NOLOGIN
2//config: bool "nologin"
3//config: default n
4//config: depends on FEATURE_SH_EMBEDDED_SCRIPTS
5//config: help
6//config: Politely refuse a login
7//config:
8//config:config NOLOGIN_DEPENDENCIES
9//config: bool "Enable dependencies for nologin"
10//config: default y
11//config: depends on NOLOGIN
12//config: select CAT
13//config: select ECHO
14//config: select SLEEP
15//config: help
16//config: nologin is implemented as a shell script. It requires the
17//config: following in the runtime environment:
18//config: cat echo sleep
19//config: If you know these will be available externally you can
20//config: disable this option.
21
22//applet:IF_NOLOGIN(APPLET_SCRIPTED(nologin, scripted, BB_DIR_USR_SBIN, BB_SUID_DROP, nologin))
23
24//usage:#define nologin_trivial_usage
25//usage: ""
26//usage:#define nologin_full_usage "\n\n"
27//usage: "Politely refuse a login"