From 15f944399c2ec3b88c9269411480bc0887468928 Mon Sep 17 00:00:00 2001 From: Robert Nelson Date: Mon, 31 Mar 2014 10:19:26 -0500 Subject: [PATCH] bb.org: fix ttyGS0 gadget serial Signed-off-by: Robert Nelson --- target/chroot/beagleboard.org.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/target/chroot/beagleboard.org.sh b/target/chroot/beagleboard.org.sh index 1d497214b..94c06bfe7 100755 --- a/target/chroot/beagleboard.org.sh +++ b/target/chroot/beagleboard.org.sh @@ -69,8 +69,9 @@ setup_system () { patch -p1 < /opt/scripts/mods/debian-add-sbin-usr-sbin-to-default-path.diff fi - if [ -f /lib/systemd/system/getty@.service ] ; then - ln -s /lib/systemd/system/getty@.service /etc/systemd/system/getty.target.wants/getty@ttyGS0.service + if [ -f /lib/systemd/system/serial-getty@.service ] ; then + cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttyGS0.service + ln -s /etc/systemd/system/serial-getty@ttyGS0.service /etc/systemd/system/getty.target.wants/serial-getty@ttyGS0.service echo "" >> /etc/securetty echo "#USB Gadget Serial Port" >> /etc/securetty