mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-26 20:52:40 +00:00
Remove all tty init from init
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
12
pkg/init/etc/init.d/000-issue
Normal file
12
pkg/init/etc/init.d/000-issue
Normal file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -f /etc/issue ]; then
|
||||
for opt in $(cat /proc/cmdline); do
|
||||
case "$opt" in
|
||||
console=*)
|
||||
fulltty=${opt#console=}
|
||||
tty=${fulltty%,*}
|
||||
cat /etc/issue >> /dev/$tty
|
||||
esac
|
||||
done
|
||||
fi
|
Reference in New Issue
Block a user