Skip to content

Commit

Permalink
Change logic from reenable to uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayy001 authored Sep 18, 2023
1 parent df13605 commit 7d13182
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package/toltec-bootstrap/toltecctl
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ reinstall-root() {
# temporarily
set +u
if [[ ${#reinstall_packages[@]} -ne 0 ]]; then
opkg install --force-reinstall --force-removal-of-essential-packages --force-remove "${!reinstall_packages[@]}"
opkg install --force-reinstall --force-remove "${!reinstall_packages[@]}"
else
echo "No package needs to be reinstalled"
fi
Expand Down Expand Up @@ -338,7 +338,7 @@ uninstall() {

# Remove installed packages in reverse dependency order
list-installed-ordered | while read -r pkgname; do
"$opkg_path" remove --force-depends --force-remove "$pkgname"
"$opkg_path" remove --force-removal-of-essential-packages --force-depends --force-remove "$pkgname"
done

systemctl daemon-reload
Expand Down

0 comments on commit 7d13182

Please sign in to comment.