summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/05-event_tty.chroot
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2018-11-12 10:07:52 +0100
committerKim Hagen <kim.sidney@gmail.com>2018-11-12 10:07:52 +0100
commit8dcda0e05b0109e12280c446070b1fa94d0a6b4b (patch)
tree3229cfed4504037f0d141ec9a6625cdb8708880c /data/live-build-config/hooks/05-event_tty.chroot
parenta48a22a8113c0e98ed019c60b1f4c182550d3979 (diff)
downloadvyos-build-8dcda0e05b0109e12280c446070b1fa94d0a6b4b.tar.gz
vyos-build-8dcda0e05b0109e12280c446070b1fa94d0a6b4b.zip
Add uefi to vyos-build
Diffstat (limited to 'data/live-build-config/hooks/05-event_tty.chroot')
-rwxr-xr-xdata/live-build-config/hooks/05-event_tty.chroot34
1 files changed, 0 insertions, 34 deletions
diff --git a/data/live-build-config/hooks/05-event_tty.chroot b/data/live-build-config/hooks/05-event_tty.chroot
deleted file mode 100755
index a00167f7..00000000
--- a/data/live-build-config/hooks/05-event_tty.chroot
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/bin/sh
-
-if [ -r etc/event.d/tty1 ] ; then
- echo I: Delay getty until rcX completes
- sed -i 's/start on runlevel /start on stopped rc/' \
- etc/event.d/tty[1-6]
- if [ ! -r etc/event.d/ttyS0 ] && [ -c dev/ttyS0 ] ; then
- echo I: Enable serial console login
- cat <<-EOF > etc/event.d/ttyS0
- # ttyS0 - getty
- #
- # This service maintains a getty on ttyS0 from the point the system is
- # started until it is shut down again.
-
- start on stopped rc2
- start on stopped rc3
- start on stopped rc4
- start on stopped rc5
-
- stop on runlevel 0
- stop on runlevel 1
- stop on runlevel 6
-
- respawn
- exec /sbin/getty 9600 ttyS0 vt100
-
- EOF
- fi
-fi
-
-if [ -r etc/inittab ] && [ -c dev/ttyS0 ] && grep -q '^#T0:.*getty.*ttyS0' etc/inittab ; then
- echo I: Enable serial console login
- sed -i '/^#T0:/s|^#.*$|T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100|' etc/inittab
-fi