diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-02-28 19:39:18 +0100 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-02-28 19:40:09 +0100 |
| commit | b9057cf8051ab784c1f4209c07a033b26e82b52f (patch) | |
| tree | a5c57d0a0102136a6fe9cde2b42653e1cc24d334 /data | |
| parent | bd0de0defd2ba7c7753495e0f831805c4b6de89a (diff) | |
| download | vyos-build-b9057cf8051ab784c1f4209c07a033b26e82b52f.tar.gz vyos-build-b9057cf8051ab784c1f4209c07a033b26e82b52f.zip | |
T8120: remove obsolete etc/event.d hooks - no longer found in live-boot
When building an ISO image the files which are probed for no longer exist.
This means it makes no sense to longer carry an unused hook.
Diffstat (limited to 'data')
| -rwxr-xr-x | data/live-build-config/hooks/live/05-event_tty.chroot | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/data/live-build-config/hooks/live/05-event_tty.chroot b/data/live-build-config/hooks/live/05-event_tty.chroot deleted file mode 100755 index 81ef6257..00000000 --- a/data/live-build-config/hooks/live/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 115200 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 115200 vt100|' etc/inittab -fi |
