WLAN connection problems and how to disable display.
Recently purchased a pro license as Iv been using the free one for a while and really like it.
Decided to go for a fresh install on rpi3, and now I'm having WLAN problems. Can get it to connect, but it randomly disconnects and switches back to AP mode.
Im looking in manageWifiAccess file to prevent the password loss issue, but the section refered to on the install page isn't there. This is what i see.
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
CMD=$1
P1=$2
P2=$3
. ../etc/server.conf
export LC_ALL=C
function delSSID {
foo="$(cat "$PWCONF" | awk '/'$P1'/ { flag=1 }; flag==0 { print $0 }; /network={/ { flag=0 }$
if echo -e "$foo" | tail -1 | grep -q 'network={'; then
foo=$(echo -e "$foo" | head -n -1)
fi
echo -e "$foo" > "$PWCONF"
}
function setHostname {
NEWNAME=$1
foo=`cat "/etc/hosts" | awk ' /SERVERNAME/ { gsub(/^.*$/, "127.0.0.1 '$NEWNAME' # SERVERNAME"$
echo -e "$foo" > /etc/hosts
echo -e "$NEWNAME" > /etc/hostname
hostname $NEWNAME
service avahi-daemon restart
}
# Detect in which mode wlan is working
# Returns:
# Master = works as access point
# Managed = normal wlan access
# Unconnected = no wlan connected yet
# NoWLAN = no wlan device present
function getWlanMode {
activeSSID=""
haswlan=`ifconfig | grep $WLAN`
if [ "$haswlan" == "" ] ; then
wlanmode="NoWLAN"
else
foo=`iwconfig $WLAN`
wlanmode=`echo -e "$foo" | awk '/Mode:/ {gsub("Mode:","",$1);print $1}'`
test2=`echo -e "$foo" | awk '/Mode:/ {print $4}'`
test=$(echo -e "$foo" | awk "/$WLAN/ {print \$2}")
if [ "$test2" == "Mode:Master" ] ; then
wlanmode="Master"
I also want to disable the display as i don't use on, and i again cant find the sections referred to in on the install page.
Whats going on? Are the instructions out of date?
Comments