English
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Great one ! Here are my two cent that make it work regardless of the interface number or names: ` IF=$1 STATUS=$2 ifaces=$(iwconfig 2> /dev/null | grep "802.11" | awk '{print $1}) for iface in $ifaces; do if [ "${IF}" = "$iface" ] && [ "${STATUS}" = "up" ]; then iwconfig ${iface} power off logger "${iface}: turning off powersave mode to prevent constant reconnections" fi done '

Great one answer in https://ask.fedoraproject.org/en/question/8168/proper-disabling-of-wifi-power-management/?answer=24839#post-id-24839 ! Here are my two cent that make it work regardless of the interface number or names: ` names:

IF=$1
STATUS=$2
ifaces=$(iwconfig 2> /dev/null | grep "802.11" | awk '{print $1})
for iface in $ifaces; do
    if [ "${IF}" = "$iface" ] && [ "${STATUS}" = "up" ]; then
        iwconfig ${iface} power off
        logger "${iface}: turning off powersave mode to prevent constant reconnections"
    fi
done
'