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.
15 lines
395 B
Bash
Executable File
15 lines
395 B
Bash
Executable File
#! /bin/sh
|
|
|
|
. ./common.inc
|
|
|
|
rm -f "$BLOCKED_QUERY_LOG_FILE"
|
|
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
|
|
|
|
exec ./handle-control-change.sh --boot
|