source: trunk/debirf/plugins/install/serial-terminal @ 318

Last change on this file since 318 was 318, checked in by jrollins, 6 years ago

debirf: broke out plugins into install and prune directories and fixed
make-debirf. moved locales removal to prune plugin.

  • Property svn:executable set to *
File size: 338 bytes
Line 
1#!/bin/sh
2
3# add serial terminal
4
5INITTAB="$DEBIRF_ROOT/etc/inittab"
6TTY="ttyS0"
7
8if grep "$TTY" "$INITTAB" | grep -q -v "^[:space:]*#" ; then
9    echo "inittab already has terminal on $TTY."
10    exit 1
11fi
12
13cat >> "$DEBIRF_ROOT"/etc/inittab <<EOF
14# debirf: added serial console output:
15T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100
16EOF
Note: See TracBrowser for help on using the repository browser.