summaryrefslogtreecommitdiffstats
path: root/src/connections/ethernet-iproute
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/ethernet-iproute')
-rw-r--r--src/connections/ethernet-iproute6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/connections/ethernet-iproute b/src/connections/ethernet-iproute
index 6264497..8937f16 100644
--- a/src/connections/ethernet-iproute
+++ b/src/connections/ethernet-iproute
@@ -13,7 +13,7 @@ ethernet_up() {
load_profile $1
if [[ ! -e /sys/class/net/$INTERFACE ]]; then
- if ! echo "$INTERFACE"|grep ":"; then
+ if ! echo "$INTERFACE" | fgrep -q ":"; then
report_iproute "Interface $INTERFACE does not exist"
fi
fi
@@ -21,7 +21,7 @@ ethernet_up() {
report_debug ethernet_iproute_up ifup
set_interface up $INTERFACE
- if ip link show $INTERFACE|grep -Fq "NO-CARRIER"; then
+ if ip link show $INTERFACE | fgrep -q "NO-CARRIER"; then
report_fail "No connection"
return 1
fi
@@ -126,7 +126,7 @@ ethernet_down() {
# Returns status of profile - is it still functional?
ethernet_status() {
- if ! ip link show dev ra0|grep -q "state UP"; then
+ if ! ip link show dev ra0 | fgrep -q "state UP"; then
return 1
fi
}