openvpn-reconnect
This commit is contained in:
parent
a3aed939fa
commit
1371a7d0df
3 changed files with 17 additions and 0 deletions
|
@ -586,6 +586,13 @@ chmod +x /usr/bin/aurupdater
|
||||||
# setcap-ping
|
# setcap-ping
|
||||||
setcap cap_net_raw+ep /bin/ping
|
setcap cap_net_raw+ep /bin/ping
|
||||||
|
|
||||||
|
# openvpn-reconnect
|
||||||
|
|
||||||
|
cp /opt/${repo}/openvpn-reconnect /usr/bin/openvpn-reconnect
|
||||||
|
chmod +x /usr/bin/openvpn-reconnect
|
||||||
|
cp /opt/${repo}/openvpn-reconnect-systemd.sh /usr/lib/systemd/system-sleep/openvpn-reconnect-systemd.sh
|
||||||
|
chmod +x /usr/lib/systemd/system-sleep/openvpn-reconnect-systemd.sh
|
||||||
|
|
||||||
su "$username" -c "aurinstaller "https://aur.archlinux.org/pamac-aur.git""
|
su "$username" -c "aurinstaller "https://aur.archlinux.org/pamac-aur.git""
|
||||||
if [ "$version" != "pi" ] && [ "$packageupdate" != "skip" ]; then
|
if [ "$version" != "pi" ] && [ "$packageupdate" != "skip" ]; then
|
||||||
su "$username" -c "aurinstaller "https://aur.archlinux.org/plymouth.git""
|
su "$username" -c "aurinstaller "https://aur.archlinux.org/plymouth.git""
|
||||||
|
|
6
openvpn-reconnect
Executable file
6
openvpn-reconnect
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ "$(id -u)" != 0 ]; then
|
||||||
|
>&2 echo "$0 must be run with root privileges!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
pkill --signal SIGHUP --exact openvpn
|
4
openvpn-reconnect-systemd.sh
Executable file
4
openvpn-reconnect-systemd.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
if [ "$1" == "post" ]; then
|
||||||
|
openvpn-reconnect
|
||||||
|
fi
|
Loading…
Reference in a new issue