slitaz-boot-scripts rev 423
init: add serial live console
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 11 16:23:40 2016 +0100 (2016-02-11) |
parents | 8844ec3dc692 |
children | e8a0127be52e |
files | init |
line diff
1.1 --- a/init Sun Feb 07 18:32:28 2016 +0000 1.2 +++ b/init Thu Feb 11 16:23:40 2016 +0100 1.3 @@ -193,6 +193,9 @@ 1.4 [ -d /proc/sys/dev/cdrom ] && 1.5 ln -s $(sed '/name/!d;s/.*:[^a-z]*//' /proc/sys/dev/cdrom/info) /dev/cdrom 1.6 1.7 +grep -s serial /proc/ioports && 1.8 +echo "ttyS0::respawn:/sbin/getty 115200 ttyS0" >> /etc/inittab 1.9 + 1.10 if use dmraid; then 1.11 dmraid -s | sed '/^type/!ds/.*: *//' | ldraid 1.12 [ ${root:0:4} = /dev ] ||