aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifdown
diff options
context:
space:
mode:
authorPhil Dibowitz <phil@ipom.com>2016-10-05 17:14:08 +0200
committerLukáš Nykrýn <lnykryn@redhat.com>2016-10-12 14:30:08 +0200
commit5c603b1da767ad0075493ca02286312039dbe0dc (patch)
tree0fbc5df0c3a8b6a37731e0c03473c26c455130fd /sysconfig/network-scripts/ifdown
parentc282b9ebefae10e5b39c404a16a4d2af39d956bf (diff)
downloadinitscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.gz
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.bz2
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.tar.xz
initscripts-5c603b1da767ad0075493ca02286312039dbe0dc.zip
[3/3] Remove tabs and fix spacing: ifup/ifdown scripts
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