mirror of
https://github.com/javalsai/lidm.git
synced 2025-07-03 14:25:03 +02:00
16 lines
277 B
Bash
Executable File
16 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
|
|
[ -r conf ] && . ./conf
|
|
|
|
if [ -x /sbin/getty -o -x /bin/getty ]; then
|
|
# busybox
|
|
GETTY=getty
|
|
elif [ -x /sbin/agetty -o -x /bin/agetty ]; then
|
|
# util-linux
|
|
GETTY=agetty
|
|
fi
|
|
|
|
exec setsid ${GETTY} ${GETTY_ARGS} \
|
|
"${TTY}" "${TERM_NAME}" \
|
|
-n -l "${EXEC_PATH}" -o 7
|