Fix wrong device name in handling of serial_device
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user