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 4056fb9fdb2423d6a68a50f8d70c499f3af0a50a
parent 9244c0900f4d5423c268932d581132db0ffa7099
Author: Morel BĂ©renger <berengermorel76@gmail.com>
Date:   Sun, 15 Nov 2020 19:31:27 +0100

add a getty instance

Diffstat:
Atemplates/generic/root/etc/service/bbgetty-tty1/run | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/templates/generic/root/etc/service/bbgetty-tty1/run b/templates/generic/root/etc/service/bbgetty-tty1/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}