summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/connections/openvpn4
-rwxr-xr-xwpa_actiond/netcfg-wpa_actiond4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/connections/openvpn b/src/connections/openvpn
index 8a7be44..ded6bf5 100644
--- a/src/connections/openvpn
+++ b/src/connections/openvpn
@@ -6,7 +6,7 @@
openvpn_up() {
load_profile "$1"
[[ -z "$OVPN_CONFIG" ]] && OVPN_CONFIG="/etc/openvpn/openvpn.conf"
- [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/var/run/openvpn-$1.pid"
+ [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/run/openvpn-$1.pid"
[[ -z "$OVPN_FLAGS" ]] && OVPN_FLAGS=""
OVPN_CONF_DIR="`dirname $OVPN_CONFIG`"
@@ -41,7 +41,7 @@ openvpn_up() {
openvpn_down() {
load_profile "$1"
- [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/var/run/openvpn-$1.pid"
+ [[ -z "$OVPN_PID_FILE" ]] && OVPN_PID_FILE="/run/openvpn-$1.pid"
kill $(head -1 $OVPN_PID_FILE)
rm $OVPN_PID_FILE
diff --git a/wpa_actiond/netcfg-wpa_actiond b/wpa_actiond/netcfg-wpa_actiond
index 4abc5ab..3f338c6 100755
--- a/wpa_actiond/netcfg-wpa_actiond
+++ b/wpa_actiond/netcfg-wpa_actiond
@@ -17,7 +17,7 @@ case $1 in
interface=$2
[[ -f "$IFACE_DIR/$interface" ]] && source "$IFACE_DIR/$interface"
stop_wpa $2
- kill $(cat "/var/run/wpa_actiond_${2}.pid")
+ kill $(cat "/run/wpa_actiond_${2}.pid")
if [[ -n "$RFKILL" ]]; then
set_rf_state "$interface" disabled $RFKILL_NAME || exit $?
fi
@@ -25,7 +25,7 @@ case $1 in
;;
*)
interface=$1; shift
- PIDFILE="/var/run/wpa_actiond_${interface}.pid"
+ PIDFILE="/run/wpa_actiond_${interface}.pid"
EXTRA_AUTOWIFI_OPTIONS="$*"
;;
esac