`egrep` is obsolescent
This commit is contained in:
parent
f7f7a09c2c
commit
64cf5f6e5c
|
@ -99,7 +99,7 @@ function interface_hardware() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Check for invalid InterfaceHardwareID (starts or ends with :) .. not a happy face, still won't quote it.
|
# 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 InterfaceHardwareID
|
||||||
unset InterfaceHardwareBus
|
unset InterfaceHardwareBus
|
||||||
return 2
|
return 2
|
||||||
|
|
Loading…
Reference in New Issue