Skip to content

Commit

Permalink
scripts: Switch loading overlays from config-pin to slots
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Abhishek <abhishek@theembeddedkitchen.net>
  • Loading branch information
abhishek-kakkar committed Jul 12, 2017
1 parent d44ae6c commit 37d608a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/beaglelogic-startup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash

log='beaglelogic-startup:'
SLOTS="/sys/devices/platform/bone_capemgr/slots"

check_uboot_overlay=$(grep bone_capemgr.uboot_capemgr_enabled=1 /proc/cmdline || true)
if [ ! -d /sys/devices/virtual/misc/beaglelogic ] ; then
if [ "x${check_uboot_overlay}" = "x" ] ; then
config-pin overlay beaglelogic
config-pin overlay cape-universalh
echo beaglelogic > "${SLOTS}"
echo cape-universalh > "${SLOTS}"
fi

echo "${log} Waiting for BeagleLogic to show up (timeout in 120 seconds)"
Expand Down

0 comments on commit 37d608a

Please sign in to comment.