summaryrefslogtreecommitdiffstats
path: root/src/connections/wireless
diff options
context:
space:
mode:
Diffstat (limited to 'src/connections/wireless')
-rw-r--r--src/connections/wireless4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connections/wireless b/src/connections/wireless
index f905756..644b002 100644
--- a/src/connections/wireless
+++ b/src/connections/wireless
@@ -32,7 +32,7 @@ wireless_up() {
# Check if interface exists
if [[ ! -e /sys/class/net/"$INTERFACE" ]]; then
- if ! echo "$INTERFACE"|grep -Fq ":"; then
+ if ! echo "$INTERFACE" | fgrep -q ":"; then
report_fail "interface $INTERFACE does not exist"
return 1
fi
@@ -190,7 +190,7 @@ wireless_status() {
load_profile $1
if [[ "$(iwgetid -r)" -ne $ESSID ]]; then
return 1
- elif ! ip link show dev ra0|grep -q "state UP"; then
+ elif ! ip link show dev ra0 | fgrep -q "state UP"; then
return 1
fi