@DMKitsch I don't use LuCI but I do build my own image and include libiwinfo and I do not have this issue.
I wonder if you have updated the feeds prior to building your firmware.
@sheider I'm with @UFD re key based access. sshpass is IMHO a lazy hack. (ducks the flames)
sshpass is available on openwrt 19, take look at the package list on openwrt.org.
https://openwrt.org/packages/pkgdata/sshpass
The forums on openwrt have discussed this same topic over the years, so I expect you will find details on how to build for Omega 2 (OpenWrt 18.x.x).
@jonty The reason why you have to kill the process is because you are not exiting gracefully. You should capture SIGINT and close the port, or there is a KeyboardInterrupt exception you could capture and close the port.
Since this is not a python forum and your underlying issue is not specific to Omega or OpenWRT I'll leave you to look into this further.
@sam-walton said in Leanest python:
It would appear that my original Omega does not have access to these libraries. I swapped it out with a newer Omega2 which appears to have the same storage space
Sorry, should have mentioned this advice is for the Omega2/2+ and does not apply to the original Omega
@sam-walton said in Leanest python:
Unfortunately, it fails due to the same problem that python-light and perhaps the urllib3 is too much for the Omega2.
Is that true? Would installing PHP instead of Python fit on an Omega2 ?
Not sure of the top of my head. I would suggest grabbing an Omega2+ and trying everything out. Then working backwards to make it fit on the Omega2 if that's a requirement.
For the interested:
I found that MAC can also be obtained on a more lower level:
hexdump -s 4 -n 6 /dev/mtd2 | sed -n '1p' | awk '{print substr($2,3) substr($2,1,2) substr($3,3) substr($3,1,2) substr($4,3) substr($4,1,2)}'
as seen in the ethernet-mode init.d script
@slx Please provide more information about the issue. What errors are you receiving? What modifications have you made? Which document are you referring to.
@sannin The header file is available as part of the sqlite3-dev package but you'll need to set up the build system to access it. Alternatively, you could download the header from the sqlite3 GitHub repository, but I expect you'll hit some other issues if you take this course.
If you are developing C/C++ code for any IoT device with limited resources you really should set up the build system so you can cross compile and thereby have access to a huge range of development resources.