use network started hook

This commit is contained in:
DrMaxNix 2023-10-10 17:08:16 +02:00
parent 35c05ef742
commit 0cc70c85a2
2 changed files with 6 additions and 6 deletions

View File

@ -11,13 +11,13 @@ Clone git repository:
# cd libvirt-firewall
```
Install as libvirt daemon hook (`libvirt < 6.5.0`):
Install as libvirt network hook (`libvirt < 6.5.0`):
```console
# cp libvirt-firewall /etc/libvirt/hooks/daemon
# cp libvirt-firewall /etc/libvirt/hooks/network
```
Install as libvirt daemon hook (`libvirt >= 6.5.0`, untested):
Install as libvirt network hook (`libvirt >= 6.5.0`, untested):
```console
# mkdir /etc/libvirt/hooks/daemon.d
# cp libvirt-firewall /etc/libvirt/hooks/daemon.d/libvirt-firewall
# mkdir /etc/libvirt/hooks/network.d
# cp libvirt-firewall /etc/libvirt/hooks/network.d/libvirt-firewall
```

View File

@ -1,6 +1,6 @@
#!/bin/bash
if [[ "$2" == "start" ]]; then
if [[ "$2" == "started" ]]; then
## CONFIG ##
# libvirt network interface
libvirt_iface="virbr0"