source: trunk/debirf/fs/usr/share/debirf/plugins/serial-terminal @ 370

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

debirf: a couple of pretty big changes/simplifications.

condensed plugins into a single phase. it was silly to have 2 phases that ran
back-to-back, when the plugins are already run by run-parts in a particular
order.

broke out some shell functions to a /usr/share/debirf/common file that will be
sourced and therefore available to all plugins. (can we explode
setup_debirf_info function now?)

updated man page. included plugins section and section on pre-defined functions.

  • 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.