From 6b4dbbdd3728bcbd99228b4a9cce1db0b24ae95d Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 14 Sep 2014 21:16:00 +0200 Subject: add networkmanager dispatcher script --- Makefile | 1 + networkmanager/80-pacredir | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100755 networkmanager/80-pacredir diff --git a/Makefile b/Makefile index dadfcea..b44d0fa 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,7 @@ install-bin: pacredir $(INSTALL) -D -m0644 initcpio/hook/paccache $(DESTDIR)$(PREFIX)/lib/initcpio/hooks/paccache $(INSTALL) -D -m0644 initcpio/install/paccache $(DESTDIR)$(PREFIX)/lib/initcpio/install/paccache $(INSTALL) -D -m0644 dhcpcd/80-pacredir $(DESTDIR)$(PREFIX)/lib/dhcpcd/dhcpcd-hooks/80-pacredir + $(INSTALL) -D -m0755 networkmanager/80-pacredir $(DESTDIR)/etc/NetworkManager/dispatcher.d/80-pacredir install-doc: README.html $(INSTALL) -D -m0644 README.md $(DESTDIR)$(PREFIX)/share/doc/paccache/README.md diff --git a/networkmanager/80-pacredir b/networkmanager/80-pacredir new file mode 100755 index 0000000..bd2def5 --- /dev/null +++ b/networkmanager/80-pacredir @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "${2}" == "up" ]; then + if pgrep -x pacredir >/dev/null; then + kill -HUP $(pgrep -x pacredir) + fi +fi -- cgit v1.2.3-70-g09d2