mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-08-20 07:46:05 +00:00
Merge pull request #2996 from ijc/init-no-spurious-tty-files
Avoid writing to tty devices which don't actually exist.
This commit is contained in:
commit
78e0305666
@ -6,7 +6,9 @@ if [ -f /etc/issue ]; then
|
|||||||
console=*)
|
console=*)
|
||||||
fulltty=${opt#console=}
|
fulltty=${opt#console=}
|
||||||
tty=${fulltty%,*}
|
tty=${fulltty%,*}
|
||||||
cat /etc/issue >> /dev/$tty
|
if [ -c "/dev/$tty" ] ; then
|
||||||
|
cat /etc/issue >> "/dev/$tty"
|
||||||
|
fi
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user