autoinst

scripts to make automated installations of debian easy
git clone git://deadbeef.fr/autoinst.git
Log | Files | Refs | README | LICENSE

run (440B)


      1 #!/bin/sh
      2 
      3 . /etc/runit/common
      4 
      5 TTY="$(echo ${SVNAME} | cut -f2 -d-)"
      6 
      7 test -n "$TTY" || badconf "Unable to retrieve TTY name from \"$SVNAME\""
      8 test -c "/dev/$TTY" || badconf "$TTY is not a character special file"
      9 
     10 CONF="$(grep "^$TTY" /etc/bb.conf.d/getty)"
     11 BAUDRATE="$(echo $CONF | cut -d: -f2)"
     12 TERMTYPE="$(echo $CONF | cut -d: -f3)"
     13 echo "Starting getty on $TTY..."
     14 exec chpst -b getty busybox ${BAUDRATE:-9600} $TTY ${TERMTYPE:-linux}