userspace: Add nologin "shell"
This commit is contained in:
@@ -23,6 +23,7 @@ set(USERSPACE_PROGRAMS
|
||||
ls
|
||||
meminfo
|
||||
mkdir
|
||||
nologin
|
||||
nslookup
|
||||
poweroff
|
||||
ProgramLauncher
|
||||
|
||||
9
userspace/programs/nologin/CMakeLists.txt
Normal file
9
userspace/programs/nologin/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
set(SOURCES
|
||||
main.cpp
|
||||
)
|
||||
|
||||
add_executable(nologin ${SOURCES})
|
||||
banan_link_library(nologin ban)
|
||||
banan_link_library(nologin libc)
|
||||
|
||||
install(TARGETS nologin OPTIONAL)
|
||||
7
userspace/programs/nologin/main.cpp
Normal file
7
userspace/programs/nologin/main.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("This account is currently not available.\n");
|
||||
return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user