mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-16 04:17:25 +00:00
a5f13e6231
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
|