Save backup as ".bck~" to prevent reading of the file by dnsmasq

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2017-10-07 22:04:14 +02:00
parent f22b83d379
commit 70ad656af0
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -227,7 +227,7 @@ Displaylist() {
NukeList() {
if [[ -f "${listMain}" ]]; then
# Back up original list
cp "${listMain}" "${listMain}.bck"
cp "${listMain}" "${listMain}.bck~"
# Empty out file
echo "" > "${listMain}"
fi