Hi Paul_123
I don’t use wifi.sh, nor do I have time to test every combination of odd characters. Not sure who is the official maintainer, or if it’s in the TC git somewhere, but I would just implement the changes you suggested, and see what shakes out next
I couldn't find it in the TC git or any of the repo src directories.
Currently, there are 3 versions of wifi.tcz in TC15:
x86 v1.5
x86_64 v1.4
ARM v1.6
Since it's just a script, I'd like to keep it in sync for all architectures.
I took the 1.6 version and added the changes for odd characters.
If there is no objection, I would like to implement the change proposed by timbee:
system("wpa_passphrase " s " " p " > /etc/wpa_supplicant.conf")
It seems a lot simpler and more straightforward than this:
print p > ptmp
----- Snip -----
system("wpa_passphrase " s " < " ptmp " > /etc/wpa_supplicant.conf")
----- Snip -----
I've put together a source tarball containing:
wifi.sh # /usr/local/bin
wifi # Script for /usr/local/tce.installed
wifi.desktop # /usr/local/share/applications
wifi.tcz.info # The .info file for updating version number, comments, and change log.
wifi.png # /usr/local/share/pixmaps
wifi.build # Script that builds and packages the extensions.
wifi.build creates wifi-Arm.tar.gz and wifi-Intel.tar.gz.
Each contains:
wifi.tcz.md5.txt
wifi.tcz
wifi.tcz.dep
wifi.tcz.list
wifi.tcz.info
wifi.tcz.zsync
The only differences are:
ARM 16k squash block size .tcz.dep=wireless_tools.tcz, wpa_supplicant.tcz
Intel 4k squash block size .tcz.dep=wpa_supplicant-dbus.tcz
wifi.build also creates a new source tarball (wifi-source-Ver1.7.tar.gz) and
wifi-Ver1.7.tar.gz.bfe for submitting the extensions and new source package.
wifi.build gets the current version number from wifi.tcz.info.