8 line
119 B
Bash
Executable File
8 line
119 B
Bash
Executable File
#!/bin/sh
|
|
if /bin/ls -l /proc/self/fd/0 | grep -q /dev/hvc0 ; then
|
|
exec su - "$2"
|
|
exit
|
|
else
|
|
exec /bin/login "$@"
|
|
fi
|