Shorten common messages for prefixed output.
This commit is contained in:
parent
d6da8e8c48
commit
72dcac8c55
@ -137,7 +137,7 @@ iwconfig_associate()
|
|||||||
case "${caps}" in
|
case "${caps}" in
|
||||||
[EI]P*)
|
[EI]P*)
|
||||||
if [ "${key}" = "-" ] ; then
|
if [ "${key}" = "-" ] ; then
|
||||||
ewarn "WEP key is not set for \"${SSID}\"; not connecting"
|
ewarn "WEP key is not set for \"${SSID}\""
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
@ -145,7 +145,7 @@ iwconfig_associate()
|
|||||||
*)
|
*)
|
||||||
if [ "${key}" != "-" ] ; then
|
if [ "${key}" != "-" ] ; then
|
||||||
key="-"
|
key="-"
|
||||||
ewarn "\"${SSID}\" is not WEP enabled; ignoring setting"
|
ewarn "\"${SSID}\" is not WEP enabled"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -250,12 +250,12 @@ iwconfig_associate()
|
|||||||
SSIDVAR=$(shell_var "${SSID}")
|
SSIDVAR=$(shell_var "${SSID}")
|
||||||
key="$(iwconfig_get_wep_key "${mac}")"
|
key="$(iwconfig_get_wep_key "${mac}")"
|
||||||
if [ "${wep_required}" = "on" -a "${key}" = "off" ]; then
|
if [ "${wep_required}" = "on" -a "${key}" = "off" ]; then
|
||||||
ewarn "WEP key is not set for \"${SSID}\" - not connecting"
|
ewarn "WEP key is not set for \"${SSID}\""
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
if [ "${wep_required}" = "off" -a "${key}" != "off" ]; then
|
if [ "${wep_required}" = "off" -a "${key}" != "off" ]; then
|
||||||
key="off"
|
key="off"
|
||||||
ewarn "\"${SSID}\" is not WEP enabled - ignoring setting"
|
ewarn "\"${SSID}\" is not WEP enabled"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! eval iwconfig "${IFACE}" key "${key}"; then
|
if ! eval iwconfig "${IFACE}" key "${key}"; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user