SysmoBTS: opkg, restart gpsdate

This might help to make sure the clock
is correct before attempting opkg update
This commit is contained in:
Keith Whyte 2021-03-11 07:40:50 +01:00
parent e8e75acdbf
commit 7e10a187ba

View file

@ -12,6 +12,7 @@ SSH_OPTS="-o StrictHostKeyChecking=no -o UserKnownHostsFile=/tmp/known-$RANDOM"
for bts in "${!BTS[@]}" ; do
ssh $SSH_OPTS root@${BTS[$bts]} "systemctl restart gpsdate"
if [ "$(ssh $SSH_OPTS ${BTS[$bts]} 'grep 201705 /etc/opkg/base-feeds.conf >/dev/null; echo $?')" == "0" ] ; then
grep OPKG_CREDS base-feeds-nightly.conf > /dev/null
if [ "$?" == "0" ]; then