mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-08-17 12:15:15 +00:00
This enables the networkmanager dispatcher to reload squid automatically on network changes. This idea is from the Fedora package where they do the same: https://src.fedoraproject.org/rpms/squid/blob/rawhide/f/squid.spec#_207 Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
8 lines
136 B
Bash
8 lines
136 B
Bash
#!/bin/sh
|
|
|
|
case "$2" in
|
|
up|down|vpn-up|vpn-down)
|
|
systemctl -q reload squid.service || :
|
|
;;
|
|
esac
|