You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
327 B

3 years ago
#!/bin/sh
CFG="/boot/boot.conf"
[ -s "$CFG" ] || {
echo "50-e2k-serial: $CFG missing, exiting" >&2
exit 0
}
[ -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"
### NB: there's no boot.conf yet! could only be the sample one