From 63065e55c880f7385997a32bf39d40957f06ca13 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 11 Feb 2017 16:06:49 +0100 Subject: [PATCH] Empty the states directory after a reboot After a shutdown we need to remove the previous checksum file, and maybe removing everything else wouldn't hurt either. Perhaps the checksum file should also be removed after a network change. --- DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/afterboot.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/afterboot.sh b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/afterboot.sh index fa4450c..bbb88e4 100755 --- a/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/afterboot.sh +++ b/DNSCrypt-Preference-Pane/DNSCrypt/extra/usr/scripts/afterboot.sh @@ -7,6 +7,7 @@ rm -f "$QUERY_LOG_FILE" rm -f "$DEBUG_LOG_FILE" find -x "$RESOLVERS_LIST_STATE" -type f -mtime +1 -exec rm -f {} \; 2>/dev/null find -x "$APP_UPDATES_STATE" -type f -mtime +1 -exec rm -f {} \; 2>/dev/null +find -x "$STATES_DIR" -type f -exec rm -f {} -exec rm -f {} \; 2>/dev/null ./clear-fw.sh