View Single Post
Posts: 2,802 | Thanked: 4,491 times | Joined on Nov 2007
#14
Originally Posted by scaler View Post
A value set manually in the Root shell persists until I exit, and then it reverts to empty.

A value set manually in the non-Root shell persists until I close the Terminal window, even if I switch between Root and non-Root shells in the mean time.

If I open a second Terminal window, it does not echo the value set manually in the first one, but echoes 'FCC/US' in the non-Root shell (whether or not the first window is still open).
That's how environment variables work. If you set a variable in a shell it only applies to that shell and any children it launches after that point.

(The reason for trying CALOSSO_etc is that the osso-product-info output includes the following line when the executable is run as non-root:
Code:
you must be root to access CALOSSO_PRODUCT_WLAN_CHANNEL='<unknown>'
and the output does not mention OSSO_PRODUCT_WLAN_CHANNEL without the "CAL".)
That's just two different messages merged on one line, ie

Code:
you must be root to access CAL
OSSO_PRODUCT_WLAN_CHANNEL='<unknown>'
CAL is the configuration partition where things like your WLAN region and MAC address are stored. The contents are set at the factory and are not modified by reflashing.

(I am a bit suspicious of waking up wlancond. There is a long thread of N900 users complaining that their wlancond causes the available channels to default from time to time, blocking off the channels we are trying to open up.)
The N900 is very different in that respect. Instead of setting the regulatory domain for the sales region at the factory they try to determine it at run time using only the cellular network to make that decision and falling back to US.
 

The Following User Says Thank You to lma For This Useful Post: