aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2017-10-23 23:11:41 +0300
committerDee'Kej <deekej@linuxmail.org>2017-10-30 17:05:44 +0100
commit969d3e5b1e905e1d0f989fe51ea64873c17355d7 (patch)
tree12ac0ddf6e12dbba028f8744c15d53d5c7f20dec /sysconfig/network-scripts
parent9170aa51fd4e8336cc34db3a1aa29989a024b50c (diff)
downloadinitscripts-969d3e5b1e905e1d0f989fe51ea64873c17355d7.tar
initscripts-969d3e5b1e905e1d0f989fe51ea64873c17355d7.tar.gz
initscripts-969d3e5b1e905e1d0f989fe51ea64873c17355d7.tar.bz2
initscripts-969d3e5b1e905e1d0f989fe51ea64873c17355d7.tar.xz
initscripts-969d3e5b1e905e1d0f989fe51ea64873c17355d7.zip
Use grep -E instead of deprecated egrep
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown b/sysconfig/network-scripts/ifdown
index 90b1c834..18cee69d 100755
--- a/sysconfig/network-scripts/ifdown
+++ b/sysconfig/network-scripts/ifdown
@@ -46,7 +46,7 @@ if [ "$_use_nm" = "true" ]; then
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
+ if ! LC_ALL=C nmcli -t -f STATE,DEVICE dev status | grep -Eq "^(failed|disconnected|unmanaged|unavailable):$DEVICE$"; then
nmcli dev disconnect "$DEVICE"
exit $?
fi