forked from Bananymous/banan-os
userspace: Add nologin "shell"
This commit is contained in:
@@ -23,6 +23,7 @@ set(USERSPACE_PROGRAMS
|
|||||||
ls
|
ls
|
||||||
meminfo
|
meminfo
|
||||||
mkdir
|
mkdir
|
||||||
|
nologin
|
||||||
nslookup
|
nslookup
|
||||||
poweroff
|
poweroff
|
||||||
ProgramLauncher
|
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