shaker/pihole/change_netvm.sh

11 lines
273 B
Bash
Raw Permalink Normal View History

2022-08-05 11:07:59 -04:00
#!/usr/bin/bash
2022-08-05 21:30:13 -04:00
qvm-start sys-pihole && sleep 5
if [ $(qubes-prefs default_netvm sys-firewall |grep sys-firewall ) ]; then
qubes-prefs default_netvm sys-pihole
fi
2022-08-05 11:07:59 -04:00
2022-08-05 21:30:13 -04:00
for i in $(qvm-ls -ONAME,NETVM |awk '/ sys-firewall/{print $1} ')
do
qvm-prefs $i netvm sys-pihole
done