`egrep` is obsolescent
This commit is contained in:
parent
f7f7a09c2c
commit
64cf5f6e5c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue