We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414ef93 commit 74f9e13Copy full SHA for 74f9e13
command-ctrl.sh
@@ -82,9 +82,15 @@ update() {
82
echo "Downloading $UPDATE_URL"
83
curl -s -f $UPDATE_URL --output $UPDATE_FILE_PATH
84
RESULT=$?
85
- if test "$RESULT" == "77" && ! test -f /etc/ssl/certs/ca-certificates.crt; then
+ if ( test "$RESULT" == "60" || test "$RESULT" == "77" ) && ! test -f /etc/ssl/certs/ca-certificates.crt; then
86
echo "Download failed, attempting to update certs and retry"
87
- update-ca-certificates
+ if command -v update-ca-certificates &> /dev/null; then
88
+ update-ca-certificates
89
+ else
90
+ opkg update
91
+ opkg install ca-certificates
92
+ opkg upgrade ca-certificates
93
+ fi
94
95
96
fi
0 commit comments