Переглянути джерело

small fixed in update dnsmasq config script

root 2 роки тому
батько
коміт
fcc76bfd4c
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      scripts/update-dnsmasq

+ 4 - 0
scripts/update-dnsmasq

@@ -8,6 +8,7 @@ force=$1
 ret=$?
 
 if [ ${ret} -ne 0 ]; then
+    [ -e "/tmp/mac-all" ] && rm -f /tmp/mac-all
     logger -t dhcpd "Config generate error! Bye."
     exit
     fi
@@ -43,4 +44,7 @@ if [ -n "${CHANGES}" -o -n "${force}" ]; then
 
 logger -t dhcpd "done"
 
+[ -e "/tmp/mac-all" ] && rm -f /tmp/mac-all
+[ -e "/tmp/mac.old" ] && rm -f /tmp/mac.old
+
 exit