aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorDavid Kaspar [Dee'Kej] <dkaspar@redhat.com>2017-03-21 17:21:53 +0100
committerDee'Kej <deekej@linuxmail.org>2017-03-22 14:42:25 +0100
commitc5917b856db1e32a863fa78b54d5a7533c99577a (patch)
tree5c37be58edf2a5a036f0d81083f398b5da9490eb /sysconfig/network-scripts/ifdown
parent9ab04edfb16c30f9bb03b1227b60cc751a692876 (diff)
downloadinitscripts-c5917b856db1e32a863fa78b54d5a7533c99577a.tar
initscripts-c5917b856db1e32a863fa78b54d5a7533c99577a.tar.gz
initscripts-c5917b856db1e32a863fa78b54d5a7533c99577a.tar.bz2
initscripts-c5917b856db1e32a863fa78b54d5a7533c99577a.tar.xz
initscripts-c5917b856db1e32a863fa78b54d5a7533c99577a.zip
9.70-sync: sysconfig/network-scripts/* updated - part 2
This commit contains a lot of whitespace changes. Use 'git diff --ignore-all-space' to display the relevant changes.
Diffstat (limited to 'sysconfig/network-scripts/ifdown')
-rwxr-xr-xsysconfig/network-scripts/ifdown10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 8cb82880..90b1c834 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -25,10 +25,10 @@ need_config "${CONFIG}"
if [ $UID != 0 ]; then
if [ -x /usr/sbin/usernetctl ]; then
- source_config
- if /usr/sbin/usernetctl ${CONFIG} report ; then
- exec /usr/sbin/usernetctl ${CONFIG} down
- fi
+ source_config
+ if /usr/sbin/usernetctl ${CONFIG} report ; then
+ exec /usr/sbin/usernetctl ${CONFIG} down
+ fi
fi
echo $"Users cannot control this device." >&2
exit 1
@@ -43,7 +43,7 @@ fi
if [ "$_use_nm" = "true" ]; then
if [ -n "$UUID" -a -z "$DEVICE" ]; then
- DEVICE=$(nmcli -t --fields uuid,device con show --active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
+ DEVICE=$(nmcli -t --fields uuid,device con show --active | awk -F ':' "\$1 == \"$UUID\" { print \$2 }")
fi
if [ -n "$DEVICE" ] && ! is_nm_device_unmanaged "$DEVICE" ; then
if ! LC_ALL=C nmcli -t -f STATE,DEVICE dev status | egrep -q "^(failed|disconnected|unmanaged|unavailable):$DEVICE$"; then