Skip to content

Commit

Permalink
fix: installing 32bit software on 64bit machine
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyc committed Jul 10, 2023
1 parent 24c4198 commit 185a077
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/pisugar-power-manager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,15 @@ done

# package names
if [ "$type"x == "deb"x ]; then
if [ "$arch"x == "arm"x ]; then
arch_deb=armhf
dpkg_arch=$(dpkg --print-architecture)
if [ "$?" == 0 ]; then
arch_deb=${dpkg_arch}
else
arch_deb=arm64
if [ "$arch"x == "arm"x ]; then
arch_deb=armhf
else
arch_deb=arm64
fi
fi
package_server="pisugar-server_${version}_${arch_deb}.deb"
package_poweroff="pisugar-poweroff_${version}_${arch_deb}.deb"
Expand Down

0 comments on commit 185a077

Please sign in to comment.