Unverified Commit 3df22344 authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Add extra sync

parent 82104fa5
......@@ -1007,6 +1007,7 @@ function jobs ()
dialog --title " Edit u-boot environment " --ok-label "Save" \
--no-collapse --editbox /boot/armbianEnv.txt 30 0 2> /boot/armbianEnv.txt.out
[[ $? = 0 ]] && mv /boot/armbianEnv.txt.out /boot/armbianEnv.txt
sync
;;
# Edit boot script
......@@ -1063,6 +1064,7 @@ function jobs ()
sed -i "s/^overlays=.*/overlays=$newoverlays/" /boot/armbianEnv.txt
if ! grep -q "overlays" /boot/armbianEnv.txt; then echo "overlays=$newoverlays" >> /boot/armbianEnv.txt; fi
if [[ -z $newoverlays ]]; then sed -i "/^overlays/d" /boot/armbianEnv.txt; fi
sync
;;
1)
if [[ "$CHANGES" == "true" ]]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment