nologin.c 914 B

123456789101112131415161718192021222324252627
  1. //config:config NOLOGIN
  2. //config: bool "nologin"
  3. //config: default y
  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 n # Y default makes it harder to select single-applet test
  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. //applet:IF_NOLOGIN(APPLET_SCRIPTED(nologin, scripted, BB_DIR_USR_SBIN, BB_SUID_DROP, nologin))
  22. //usage:#define nologin_trivial_usage
  23. //usage: ""
  24. //usage:#define nologin_full_usage "\n\n"
  25. //usage: "Politely refuse a login"