#!/bin/ash
#170727 sfs
    if [ "`uname -m`" != "aarch64" ] ;then
#w="`iwconfig 2>&1 |awk '!/no wirel/ && !/^$/ {print $1}'`"
w="`iwconfig 2>&1 |awk '/IEEE / {print $1}'`"
[ ! "$w" ] && ntf -e "WiFi интерфейсов не обнаружено" "`iwconfig 2>&1|egrep -v '^$'`" && exit
##lilyterm -H -e sudo wifi-menu -o "$w" || urxvt  -e sudo wifi-menu -o "$w"
sudo net-auto -wi-fi

    else

[ ! "`egrep '^wifi_dummy' /etc/modules-load.d/modules.conf`" ] && modprobe wifi_dummy && echo wifi_dummy >> /etc/modules-load.d/modules.conf
xterm -e wifi-menu
ntf -q "Настройка сетей" "через 'netctl' или sudo pacman -Sy networkmanager

Показать справку netctl?" && defaultbrowser "https://wiki.archlinux.org/index.php/Netctl_(Русский)" &
    fi