Package libvirt-daemon-config-network: Scripts

Post install

1
2
3
4
5
6
7
8
if [ $1 -eq 1 ]; then
    if [ ! -f /etc/libvirt/qemu/networks/default.xml ]; then
	UUID=`/usr/bin/uuidgen`
	sed -e "s,</name>,</name>\n  <uuid>$UUID</uuid>," \
         < /usr/share/libvirt/networks/default.xml \
         > /etc/libvirt/qemu/networks/default.xml
    fi
fi