qubes-nmhook 387 B

12345678910111213141516
  1. #!/bin/sh
  2. # Source Qubes library.
  3. # shellcheck source=init/functions
  4. . /usr/lib/qubes/init/functions
  5. if [ "$2" = "up" ]; then
  6. /usr/lib/qubes/qubes-setup-dnat-to-ns
  7. # FIXME: Tinyproxy does not reload DNS servers.
  8. if under_systemd ; then
  9. systemctl --no-block try-restart qubes-updates-proxy.service
  10. else
  11. service qubes-updates-proxy try-restart
  12. fi
  13. fi