X-Git-Url: https://git.madduck.net/code/vinst.git/blobdiff_plain/88d4c549e67f2e2e27d1d25199c7adf8ba078abd..10cac4edfc25c11d66c0950c22371c2f7a3fe615:/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 new file mode 100755 index 0000000..09f8acb --- /dev/null +++ b/preseed/jessie/commands/late_commands.d/enable_serial_console @@ -0,0 +1,9 @@ +#!/bin/sh +echo "Enabling the serial console..." +#683124 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 +sed -i '/ttyS0/s/^#//;/ttyS0/s/9600 vt100/115200 linux/' /etc/inittab