Skip to content

Commit

Permalink
bb.org: systemd: start getty over ttyGS0
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
  • Loading branch information
RobertCNelson committed Mar 24, 2014
1 parent a82602b commit e644b65
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
3 changes: 3 additions & 0 deletions changes/bb.org-changes.txt
@@ -1,5 +1,8 @@
bb.org-next

Enable: sytemd start getty over ttyGS0
https://github.com/beagleboard/image-builder/commit/(next)

Added: wicd-curses
https://github.com/beagleboard/image-builder/commit/c1e5c3dc1d2df5606f2c623b2b8f011ba08deae1

Expand Down
12 changes: 10 additions & 2 deletions target/chroot/beagleboard.org.sh
Expand Up @@ -62,12 +62,20 @@ git_clone_full () {
echo "${git_target_dir} : ${git_repo}" >> /opt/source/list.txt
}

system_patches () {
setup_system () {
#For when sed/grep/etc just gets way to complex...
cd /
if [ -f /opt/scripts/mods/debian-add-sbin-usr-sbin-to-default-path.diff ] ; then
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

echo "" >> /etc/securetty
echo "#USB Gadget Serial Port" >> /etc/securetty
echo "ttyGS0" >> /etc/securetty
fi
}

setup_desktop () {
Expand Down Expand Up @@ -396,8 +404,8 @@ unsecure_root () {
}

is_this_qemu
system_patches

setup_system
setup_desktop

install_node_pkgs
Expand Down

0 comments on commit e644b65

Please sign in to comment.