Add a state file to indicate an ongoing update.

This commit is contained in:
Frank Denis
2012-07-30 14:59:38 -07:00
parent b449925fc2
commit 5227d90e37
+6 -2
View File
@@ -2,9 +2,13 @@
. ./common.inc
touch "${STATES_DIR}/updating"
if [ -e "$DNSCRYPT_FILE" ]; then
exec ./switch-to-dnscrypt.sh
./switch-to-dnscrypt.sh
else
./stop-dnscrypt-proxy.sh
exec ./switch-to-dhcp.sh
./switch-to-dhcp.sh
fi
rm -f "${STATES_DIR}/updating"
rm -f "${STATES_DIR}/update-request"