@Juanito
Thanks for those comments.
I don't call the script via bootlocal.sh and I run the script as user tc
Do you, therefore, run the script
during the boot but not as root?
If so, how do you do that?
I'm fairly convinced now that my problem is that I can't get wireless_tools loaded before my script runs with the result that the three "iwconfig" commands don't function.
As bootlocal.sh runs as root, and "tce-load" cannot be run as root, I've got a problem.
I did, of course, try your suggestion
If you did want to load an extension via bootlocal.sh, I guess you could use "su tc tce-load /path/extension"
but this didn't work for me.
Indeed, If I run the script (after boot) in a root terminal, the two "tce-load" lines give me this error:
sh: can't open tce-load
So, in summary I believe what I need are either a) a means to allow the wireless_tools and wpa-supplement tce's to be loaded from bootlocal.sh or b) some way to get a script to be run during, or immediately after (but automatically), the boot other than through bootlocal.sh