Skip to content

Commit

Permalink
Merge pull request MichaIng#1422 from Fourdee/ntp_buster
Browse files Browse the repository at this point in the history
DietPi | Fix Buster issues
  • Loading branch information
MichaIng authored Jan 25, 2018
2 parents cbdfad1 + 57ee409 commit 8cdb984
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 32 deletions.
1 change: 1 addition & 0 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ _EOF_

systemctl disable systemd-timesyncd
rm /etc/init.d/ntp &> /dev/null
(( $G_DISTRO > 4 )) && systemctl mask ntp

G_DIETPI-NOTIFY 2 "Configuring regional settings (TZdata):"

Expand Down
80 changes: 48 additions & 32 deletions dietpi/dietpi-software
Original file line number Diff line number Diff line change
Expand Up @@ -4697,51 +4697,59 @@ _EOF_

Banner_Installing

# - ARMv8
if (( $G_HW_ARCH == 3 )); then
if (( $G_DISTRO > 4 )); then

dpkg --add-architecture armhf
G_AGUP
# On Buster, we can use current APT package from Debian repo
G_AGI mosquitto

fi
else

#Pre-Req
# - libssl1.0.0 no longer available: https://github.com/Fourdee/DietPi/issues/1299
INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/'
# - ARMv8
if (( $G_HW_ARCH == 3 )); then

# - ARMv6/7/8
if (( $G_HW_ARCH >= 1 && $G_HW_ARCH <= 3 )); then
dpkg --add-architecture armhf
G_AGUP

INSTALL_URL_ADDRESS+='libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb'
fi

# - x86_64
elif (( $G_HW_ARCH == 10 )); then
#Pre-Req
# - libssl1.0.0 no longer available: https://github.com/Fourdee/DietPi/issues/1299
INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/'

INSTALL_URL_ADDRESS+='libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb'
# - ARMv6/7/8
if (( $G_HW_ARCH >= 1 && $G_HW_ARCH <= 3 )); then

fi
INSTALL_URL_ADDRESS+='libssl1.0.0_1.0.1t-1+deb8u7_armhf.deb'

G_CHECK_URL "$INSTALL_URL_ADDRESS"
# - x86_64
elif (( $G_HW_ARCH == 10 )); then

wget "$INSTALL_URL_ADDRESS" -O package.deb
dpkg -i package.deb
rm package.deb
INSTALL_URL_ADDRESS+='libssl1.0.0_1.0.1t-1+deb8u7_amd64.deb'

INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb'
if (( $G_HW_ARCH == 10 )); then
fi
G_CHECK_URL "$INSTALL_URL_ADDRESS"

INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_amd64.deb'
wget "$INSTALL_URL_ADDRESS" -O package.deb
dpkg -i package.deb
rm package.deb

fi
G_CHECK_URL "$INSTALL_URL_ADDRESS"
INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_armhf.deb'
if (( $G_HW_ARCH == 10 )); then

wget "$INSTALL_URL_ADDRESS" -O package.deb
INSTALL_URL_ADDRESS='http://dietpi.com/downloads/binaries/all/mosquitto_1.4.14-0mosquitto1_nows1_amd64.deb'

#Install deb
# Allow error, so we can install additional required packages automatically
dpkg -i package.deb
G_AGF
rm package.deb
fi
G_CHECK_URL "$INSTALL_URL_ADDRESS"

wget "$INSTALL_URL_ADDRESS" -O package.deb

#Install deb
# Allow error, so we can install additional required packages automatically
dpkg -i package.deb
G_AGF
rm package.deb

fi

fi

Expand Down Expand Up @@ -12635,8 +12643,16 @@ _EOF_

elif (( $index == 123 )); then

#apt-mark auto libssl1.0.0
G_AGP mosquitto
if (( $G_DISTRO > 4 )); then

G_AGP mosquitto

else

#apt-mark auto libssl1.0.0
dpkg -P mosquitto

fi

elif (( $index == 124 )); then

Expand Down

0 comments on commit 8cdb984

Please sign in to comment.