diff options
-rwxr-xr-x | scripts/wifi-menu | 2 | ||||
-rw-r--r-- | src/8021x | 8 | ||||
-rw-r--r-- | src/connections/ethernet | 2 | ||||
-rw-r--r-- | src/network | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/scripts/wifi-menu b/scripts/wifi-menu index bbc2bf5..10353f8 100755 --- a/scripts/wifi-menu +++ b/scripts/wifi-menu @@ -102,7 +102,7 @@ create_profile() local box flags key msg security PROFILE="$INTERFACE-${1//\//_}" [[ -e "$PROFILE_DIR/$PROFILE" ]] && PROFILE+=".wifi-menu" - flags=$(fgrep -m 1 $'\t'"$1\$" "$NETWORKS" | cut -f 2) + flags=$(grep -F -m 1 $'\t'"$1\$" "$NETWORKS" | cut -f 2) if [[ "$flags" =~ WPA|WEP ]]; then security=${BASH_REMATCH[0],,} else @@ -28,9 +28,9 @@ wpa_check() while (( timeout < TIMEOUT )); do ( # Sometimes wpa_supplicant isn't ready so silence errors for 2s only to avoid hiding real errors if (( timeout < 2 )); then - eval $(wpa_call "$INTERFACE" status 2> /dev/null | fgrep "wpa_state=") + eval $(wpa_call "$INTERFACE" status 2> /dev/null | grep -F "wpa_state=") else - eval $(wpa_call "$INTERFACE" status | fgrep "wpa_state=") + eval $(wpa_call "$INTERFACE" status | grep -F "wpa_state=") fi [[ "$wpa_state" = "$CONDITION" ]] ) && return 0 @@ -125,7 +125,7 @@ wpa_supplicant_scan_and_find() { for ((try=0; try < $RETRIES; try++)); do local found sleep 2 - found=$(wpa_call "$INTERFACE" scan_results | tail -n+2 | cut -f ${FIELD} | fgrep -x -m 1 "${ITEM}") + found=$(wpa_call "$INTERFACE" scan_results | tail -n+2 | cut -f ${FIELD} | grep -F -x -m 1 "${ITEM}") (( $? == 0 )) && scan_ok=1 # ITEM has been found, echo it @@ -164,7 +164,7 @@ wpa_supplicant_scan_info() { # Wait at least 3 seconds for scan results sleep 3 # Sometimes, that is not enough (FS#29946) - timeout_wait 7 '! wpa_call "$INTERFACE" status | fgrep -q "wpa_state=SCANNING"' + timeout_wait 7 '! wpa_call "$INTERFACE" status | grep -F -q "wpa_state=SCANNING"' wpa_call "$INTERFACE" scan_results | grep -v "^Selected" | grep -v "^bssid" | diff --git a/src/connections/ethernet b/src/connections/ethernet index e9ff67f..0a70f5d 100644 --- a/src/connections/ethernet +++ b/src/connections/ethernet @@ -18,7 +18,7 @@ ethernet_up() { SYSCTL_INTERFACE="${INTERFACE/.//}" if [[ ! -e "/sys/class/net/$INTERFACE" ]]; then - if ! echo "$INTERFACE" | fgrep -q ":"; then + if ! echo "$INTERFACE" | grep -F -q ":"; then report_iproute "Interface $INTERFACE does not exist" fi fi diff --git a/src/network b/src/network index 91dc49c..639de1b 100644 --- a/src/network +++ b/src/network @@ -331,7 +331,7 @@ set_iface() { is_interface() { local INTERFACE="$1" if [[ ! -e "/sys/class/net/$INTERFACE" ]]; then - if ! echo "$INTERFACE" | fgrep -q ":"; then + if ! echo "$INTERFACE" | grep -F -q ":"; then return 1 fi fi |