浏览代码

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