gns3-registry/packer/alpine-linux/scripts/cli.sh

6 lines
185 B
Bash

# use serial console
sed -i 's/\(APPEND .*\)/\1 console=ttyS0/' /boot/extlinux.conf
# autologin on serial console
sed -i 's/^ttyS0.*/ttyS0::respawn:\/bin\/login -f root/' /etc/inittab