diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 8ed1da8..e4a8450 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -99,7 +99,7 @@ function interface_hardware() { esac # Check for invalid InterfaceHardwareID (starts or ends with :) .. not a happy face, still won't quote it. - if echo "$InterfaceHardwareID" | egrep -q "^:|:$"; then + if echo "$InterfaceHardwareID" | grep -Eq "^:|:$"; then unset InterfaceHardwareID unset InterfaceHardwareBus return 2