Skip to content

Commit

Permalink
Show missing overlays on RK3588 legacy branch (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
efectn committed Feb 14, 2023
1 parent fb36fe4 commit a8d2a2f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion debian-config-jobs
Expand Up @@ -1190,14 +1190,21 @@ function jobs ()
j=0
DIALOG_CANCEL=1
DIALOG_ESC=255

def_overlays=$(ls -1 ${OVERLAYDIR}/${overlay_prefix}*.dtbo | sed 's/^.*\('${overlay_prefix}'.*\)/\1/g' | sed 's/'${overlay_prefix}'-//g' | sed 's/.dtbo//g')
if [ $BOARDFAMILY == "rockchip-rk3588" ] && [ $BRANCH == "legacy" ]; then
builtin_overlays=$(ls -1 ${OVERLAYDIR}/*.dtbo | grep -v ${overlay_prefix} | sed 's#^'${OVERLAYDIR}'/##' | sed 's/.dtbo//g')
def_overlays="$def_overlays"'\n'"$builtin_overlays"
fi

while read line
do
STATUS=$([[ -n $(cat /boot/armbianEnv.txt | grep overlays | grep -w ${line}) ]] && echo "on")
DESC=$(description "$line")
MOTD+=( "$line" "$DESC" "$STATUS")
LINES[ $j ]=$line
(( j++ ))
done < <(ls -1 ${OVERLAYDIR}/${overlay_prefix}*.dtbo | sed 's/^.*\('${overlay_prefix}'.*\)/\1/g' | sed 's/'${overlay_prefix}'-//g' | sed 's/.dtbo//g' )
done < <(echo -e $def_overlays | tr " " "\n" )

exec 3>&1
selection=$(dialog --backtitle "$BACKTITLE" --colors --title "Toggle hardware configuration" --clear --cancel-label \
Expand Down

0 comments on commit a8d2a2f

Please sign in to comment.