mirror of
git://git.yoctoproject.org/meta-virtualization.git
synced 2025-07-19 20:59:41 +02:00

Previously the following message was printed on the console every 5 minutes: INIT: Id "X0" respawning too fast: disabled for 5 minutes Installing and using a getty-wrapper that will check for the hypervisor (hvc0) device and if not present, will call sleep Signed-off-by: Jaewon Lee <jaewon.lee@xilinx.com> Signed-off-by: Mark Hatle <mark.hatle@xilinx.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
9 lines
92 B
Bash
9 lines
92 B
Bash
#!/bin/sh
|
|
if test -c /dev/"$2"
|
|
then
|
|
exec /sbin/getty $*
|
|
else
|
|
exec sleep 3600d
|
|
fi
|
|
|