浏览代码

Update pihole after setting a static local IP address

Bob Mottram 8 年前
父节点
当前提交
e7363daa76
共有 1 个文件被更改,包括 6 次插入0 次删除
  1. 6
    0
      src/freedombone-controlpanel

+ 6
- 0
src/freedombone-controlpanel 查看文件

@@ -1373,6 +1373,12 @@ Enter a static local IP address for this system.\n\nIt will typically be 192.168
1373 1373
             echo '#    network 192.168.7.0' >> /etc/network/interfaces
1374 1374
             echo '#    gateway 192.168.7.1' >> /etc/network/interfaces
1375 1375
         fi
1376
+
1377
+        # if pi-hole is installed then update the IP address it uses
1378
+        if [ -f /usr/local/bin/pihole ]; then
1379
+            function_check pihole_update
1380
+            pihole_update
1381
+        fi
1376 1382
     fi
1377 1383
 }
1378 1384