Unverified Commit 28fadf1d authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Make upgrade more bullet proof

parent 63118329
...@@ -961,6 +961,7 @@ function jobs () ...@@ -961,6 +961,7 @@ function jobs ()
dialog --title " Update " --backtitle "$BACKTITLE" --no-label "No" --yesno "\nDo you want to update board firmware?" 7 41 dialog --title " Update " --backtitle "$BACKTITLE" --no-label "No" --yesno "\nDo you want to update board firmware?" 7 41
fi fi
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
debconf-apt-progress -- apt --fix-broken -y install
debconf-apt-progress -- apt-get update debconf-apt-progress -- apt-get update
debconf-apt-progress -- apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y upgrade debconf-apt-progress -- apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y upgrade
[[ -z $scripted ]] && \ [[ -z $scripted ]] && \
......
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