Skip to content

Commit

Permalink
manage_dtoverlays: use overlays instead of fdt_overlays in armbianEnv…
Browse files Browse the repository at this point in the history
….txt
  • Loading branch information
amazingfate authored and igorpecovnik committed Dec 4, 2024
1 parent 22f8635 commit 478d328
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/modules/system/manage_dtoverlays.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function manage_dtoverlays () {
fi
for overlay in ${available_overlays}; do
local status="OFF"
grep '^fdt_overlays' ${overlayconf} | grep -qw ${overlay} && status=ON
grep '^overlays' ${overlayconf} | grep -qw ${overlay} && status=ON
options+=( "$overlay" "" "$status")
done
selection=$($DIALOG --title "Manage devicetree overlays" --cancel-button "Back" \
Expand All @@ -41,8 +41,8 @@ function manage_dtoverlays () {
0)
changes="true"
newoverlays=$(echo $selection | sed 's/"//g')
sed -i "s/^fdt_overlays=.*/fdt_overlays=$newoverlays/" ${overlayconf}
if ! grep -q "^fdt_overlays" ${overlayconf}; then echo "fdt_overlays=$newoverlays" >> ${overlayconf}; fi
sed -i "s/^overlays=.*/overlays=$newoverlays/" ${overlayconf}
if ! grep -q "^overlays" ${overlayconf}; then echo "overlays=$newoverlays" >> ${overlayconf}; fi
sync
;;
1)
Expand Down

0 comments on commit 478d328

Please sign in to comment.