diff --git a/cleanup_and_isntall.sh b/cleanup_and_isntall.sh index 9d45b53..1e44251 100644 --- a/cleanup_and_isntall.sh +++ b/cleanup_and_isntall.sh @@ -32,7 +32,7 @@ echo "Old files removed" apt update apt remove -y inetutils-ping -apt install -y ppp curl iputils-ping mosquitto_utils +apt install -y ppp curl iputils-ping mosquitto-clients echo "Dependencies installed" mkdir -p /etc/ppp/chatscripts @@ -61,12 +61,13 @@ while true; do break ;; 2) - curl -sSL "https://git.openergy.ru/LUCKFOX/SIM800C/raw/branch/$BRANCH/etc/cron.d/t3hs_sim800_gpio" > /etc/cron.d/t3hs_sim800_gpio + curl -sSL "https://git.openergy.ru/LUCKFOX/SIM800C/raw/branch/$BRANCH/etc/cron.d/t3hs_sim800_mqtt" > /etc/cron.d/t3hs_sim800_mqtt chmod 644 /etc/cron.d/t3hs_sim800_mqtt chown root:root /etc/cron.d/t3hs_sim800_mqtt break ;; esac +done if [[ ! -f /etc/t3hs/sim800 ]]; then mkdir -p /etc/t3hs