boot-scripts
boot-scripts copied to clipboard
Wifi SSID replacement
Have an issue. Setting the Wifi tether name via connman breaks the USB tether interface. the computer connects and get's an IP address, but none of the webui(Cloud9, default .local address, direct IP access, or node-red) works when that's done. The Wifi SSID change persists, but nothing connected directly works any longer.
I was looking for ways to change the SSID and ran across this in the startup script in /opt/scripts/boot. I'm not sure if this is whats affecting it or some other portion.
This code block: `if [ -f /var/lib/connman/settings ] ; then wifi_name=$(grep Tethering.Identifier= /var/lib/connman/settings | awk -F '=' '{print $2}' || true)
#Dont blindly, change Tethering.Identifier as user may have changed it, just match ${wifi_prefix}
if [ "x${wifi_name}" = "x${wifi_prefix}" ] ; then
ssid_append=$(echo ${cpsw_0_mac} | cut -b 13-17 | sed 's/://g' || true)
if [ ! "x${wifi_name}" = "x${wifi_prefix}-${ssid_append}" ] ; then
if [ ! "x${wifi_name}" = "x${wifi_prefix}-${ssid_append}" ] ; then
systemctl stop connman.service || true
sed -i -e 's:Tethering.Identifier='$wifi_name':Tethering.Identifier='$wifi_prefix'-'$ssid_append':g' /var/lib/connman/settings
systemctl daemon-reload || true
systemctl restart connman.service || true
fi
fi
fi
if [ -f /etc/systemd/system/network-online.target.wants/connman-wait-online.service ] ; then
systemctl disable connman-wait-online.service || true
fi
fi`
One thing i did notice is that
if [ ! "x${wifi_name}" = "x${wifi_prefix}-${ssid_append}" ] ; then if [ ! "x${wifi_name}" = "x${wifi_prefix}-${ssid_append}" ] ; then
Is layered even though it's the same exact condition? is it possibly that a portion of this should be outside of the condition that's causing the wifi to stop work?
Have you tried editing /etc/default/bb-wl18xx ?
Regards,
Thanks!
I couldn't find information anywhere on how or where to change that. Everything said to just do it in Connmanctl.
Is this information located somewhere else i should have checked first and missed?
On Tue, Mar 6, 2018 at 1:20 PM, Robert Nelson [email protected] wrote:
Have you tried editing /etc/default/bb-wl18xx ?
Regards,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RobertCNelson/boot-scripts/issues/77#issuecomment-370877703, or mute the thread https://github.com/notifications/unsubscribe-auth/AK3vNfLqKFeNbDHcMrXY41JhKzy8kpJiks5tbtNugaJpZM4SfMCr .
It's documented on the mailing list..
It's just complex since we setup an out of box image that enables an AP by default for end users to easily use out of the box.
/etc/default/bb-wl18xx is a little custom to allow users to tweak the out of box settings..
Regards,
i appreciate it. To avoid this type of pitfall in the future, can you direct me to where I can sign up for the mailing list?
On Mar 6, 2018 3:01 PM, "Robert Nelson" [email protected] wrote:
It's documented on the mailing list..
It's just complex since we setup an out of box image that enables an AP by default for end users to easily use out of the box.
/etc/default/bb-wl18xx is a little custom to allow users to tweak the out of box settings..
Regards,
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/RobertCNelson/boot-scripts/issues/77#issuecomment-370909120, or mute the thread https://github.com/notifications/unsubscribe-auth/AK3vNX8OdTNPYx7VxqeGMecX0ROTO88Tks5tbur3gaJpZM4SfMCr .
Here is the main group:
https://groups.google.com/forum/#!forum/beagleboard
otherwise, you are also free to ask on github.com/beagleboard/ or github.com/RobertCNelson etc.. ;)