diff --git a/sbin/reform-display-config b/sbin/reform-display-config index 1e2a48a8abf3c1cb29dd88da47f3efde6b55c9fd..6f9f9b4bbeb3acc3efb466d0976e6f1dade2249d 100755 --- a/sbin/reform-display-config +++ b/sbin/reform-display-config @@ -7,8 +7,6 @@ if [ "$EUID" -ne 0 ] exit fi -DTB="x" -DTB_TARGET="imx8mq-mnt-reform2.dtb" CHOICE="$1" BOOTPART="mmcblk1p1" BOOTDISK="SD card" @@ -23,17 +21,15 @@ fi case "$CHOICE" in dual) echo "MNT Reform 2 HDMI" > /etc/flash-kernel/machine;; single) echo "MNT Reform 2" > /etc/flash-kernel/machine;; + *) + echo "Usage: " + echo " reform-display-config dual Select dual-display support (internal + HDMI)." + echo " reform-display-config single Select only internal display (turns off HDMI)." + echo " reform-display-config --emmc dual|single Record choice on eMMC." + exit + ;; esac -if [[ "$DTB" == "x" ]] -then - echo "Usage: " - echo " reform-display-config dual Select dual-display support (internal + HDMI)." - echo " reform-display-config single Select only internal display (turns off HDMI)." - echo " reform-display-config --emmc dual|single Record choice on eMMC." - exit -fi - MOUNTED_AT=$(mount | grep $BOOTPART | grep "on /" | cut -d ' ' -s -f 3) if [[ "x$MOUNTED_AT" != "x" ]] then