1
0
mirror of synced 2026-04-15 15:49:48 +00:00

Fix wrong device name in handling of serial_device

This commit is contained in:
Axel Beckert
2012-06-06 14:30:47 +02:00
parent 5bd5f01699
commit cc4ad94939

View File

@@ -39,10 +39,10 @@ if [ ! -z "${serial_device}" ]; then
serial_device=`basename $serial_device`
# Let the user know.
logMessage "Replacing default serial device (tty1) with ${serial_device}"
logMessage "Replacing default serial device (hvc0) with ${serial_device}"
# replace existing device.
sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/inittab
sed -i -e s/hvc0/${serial_device}/ ${prefix}/etc/inittab
# make sure that it is allowed to login.
echo $serial_device >> ${prefix}/etc/securetty