X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/c4c55ce4a7853887d746ab8ad7471bf947b1bafc..9e1c6791342fb991a4b7e8d67b37a56765312322:/preseed/jessie/commands/late_commands.d/enable_serial_console diff --git a/preseed/jessie/commands/late_commands.d/enable_serial_console b/preseed/jessie/commands/late_commands.d/enable_serial_console deleted file mode 100755 index 47768c0..0000000 --- a/preseed/jessie/commands/late_commands.d/enable_serial_console +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -echo "Enabling the serial console..." -if [ -f /etc/default/grub ]; then - #683124/#769406 requires the cmdline patch, and #444026 is for GRUB_TERMINAL: - sed -i -e '/^GRUB_CMDLINE_LINUX=/s/"$/ console=tty0 console=ttyS0,115200n8&/' \ - -e '/^GRUB_CMDLINE_LINUX=/s/=" /="/' \ - -e '/^GRUB_TERMINAL=/s/serial/"& console"/' \ - /etc/default/grub - update-grub -fi -if [ -f /etc/inittab ]; then - sed -i '/ttyS0/s/^#//;/ttyS0/s/9600 vt100/115200 linux/' /etc/inittab -else - echo "Not setting up a TTY on the serial port, presumably systemd will..." -fi