]> git.madduck.net Git - code/vinst.git/blob - preseed/wheezy/commands/late_commands.d/enable_serial_console

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

also fetch MANIFEST files for d-i
[code/vinst.git] / preseed / wheezy / commands / late_commands.d / enable_serial_console
1 #!/bin/sh
2 echo "Enabling the serial console..."
3 #683124 requires the cmdline patch, and #444026 is for GRUB_TERMINAL:
4 sed -i -e '/^GRUB_CMDLINE_LINUX=/s/"$/ console=tty0 console=ttyS0,115200n8&/' \
5        -e '/^GRUB_CMDLINE_LINUX=/s/=" /="/' \
6        -e '/^GRUB_TERMINAL=/s/serial/"& console"/' \
7        /etc/default/grub
8 update-grub
9 sed -i '/ttyS0/s/^#//;/ttyS0/s/9600 vt100/115200 linux/' /etc/inittab