From c829d5d370cb7e22a6f4f0b88b88e90eef8a3578 Mon Sep 17 00:00:00 2001 From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de> Date: Mon, 28 Feb 2022 09:30:57 +0100 Subject: [PATCH] sbin/reform-display-config: remove leftover DTB check --- sbin/reform-display-config | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/sbin/reform-display-config b/sbin/reform-display-config index 1e2a48a..6f9f9b4 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 -- GitLab