mkimage-profiles/features.in/e2k/rootfs/image-scripts.d/50-e2k-serial
Michael Shigorin 78ac727d7b e2k: initial implementation
Elbrus 2000 only takes us a few lines to get up and running ;-)
2017-08-02 22:14:05 +03:00

10 lines
208 B
Bash
Executable File

#!/bin/sh
CFG="/boot/boot.conf"
[ -f "$CFG" ] || exit 1
[ -n "$GLOBAL_TTY_DEV" -a -n "$GLOBAL_TTY_RATE" ] || exit 0
# tty0 first
sed -i "s/console=tty0 /console=$GLOBAL_TTY_DEV,$GLOBAL_TTY_RATE &/" "$CFG"