diff options
-rwxr-xr-x | mageia/network-scripts/ifdown.d/vpn | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mageia/network-scripts/ifdown.d/vpn b/mageia/network-scripts/ifdown.d/vpn index 466e54fd..f7be6435 100755 --- a/mageia/network-scripts/ifdown.d/vpn +++ b/mageia/network-scripts/ifdown.d/vpn @@ -1,8 +1,8 @@ #!/bin/sh -if [ -r /etc/sysconfig/network-scripts/ifcfg-$1 ]; then - . /etc/sysconfig/network-scripts/ifcfg-$1 +if [ -r "/etc/sysconfig/network-scripts/ifcfg-$1" ]; then + . "/etc/sysconfig/network-scripts/ifcfg-$1" if [ -n "$VPN_TYPE" ] && [ -n "$VPN_NAME" ]; then - /usr/sbin/vpn-stop $VPN_TYPE $VPN_NAME + /usr/sbin/vpn-stop "$VPN_TYPE" "$VPN_NAME" fi fi |