소스 검색

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