Pi-hole - set up and packaging

This commit is contained in:
unman 2022-08-05 15:07:59 +00:00
parent dec10e8881
commit a8687db2f1
No known key found for this signature in database
GPG key ID: FDD1B8244731B36C
3 changed files with 102 additions and 0 deletions

7
pihole/change_netvm.sh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/bash
qvm-start sys-pihole
if [ $(qubes-prefs default_netvm sys-firewall |grep sys-firewall ) ]; then qubes-prefs default_netvm sys-pihole; fi
sleep 3
for i in `qvm-ls -O NAME,NETVM | awk '/ sys-firewall/{ print $1 }'`; do qvm-prefs $i netvm sys-pihole; done