autoinst

scripts to make installation of custom debian easier and more automated
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

commit 9c99ce4c030f714a7843154af1e7c915c8f733b6
parent 2d8087dd64daa9f2412298da8ba0645b15680fae
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 15 Nov 2020 18:47:17 +0100

adds a busybox getty runfile

Diffstat:
Atemplates/generic/root/etc/bb.conf.d/getty | 4++++
Atemplates/generic/root/etc/sv/bb-getty/run | 14++++++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/templates/generic/root/etc/bb.conf.d/getty b/templates/generic/root/etc/bb.conf.d/getty @@ -0,0 +1,4 @@ +tty1:38400:linux +tty2:38400:linux +tty3:38400:linux +tty4:38400:linux diff --git a/templates/generic/root/etc/sv/bb-getty/run b/templates/generic/root/etc/sv/bb-getty/run @@ -0,0 +1,14 @@ +#!/bin/sh + +. /etc/runit/common + +TTY="$(echo ${SVNAME} | cut -f2 -d-)" + +test -n "$TTY" || badconf "Unable to retrieve TTY name from \"$SVNAME\"" +test -c "$TTY" || badconf "$TTY is not a character special file" + +CONF="$(grep "^$TTY" /etc/bb.conf.d/getty)" +BAUDRATE="$(echo $CONF | cut -d- -f2)" +TERMTYPE="$(echo $CONF | cut -d- -f3)" +echo "Starting getty on $TTY..." +exec chpst -b getty busybox ${BAUDRATE:-9600} $TTY ${TERMTYPE:-linux}