Multiple APs with the same essid works fine in ceni. Ceni lists them separately by mac and sorts by signal strength.
The wrapper I wrote in my previous post should work fine (EDIT: with tweaks that I just realized would be required) for adding to a menu, which I assume is what would be done. If anticapitalista wants a wrapper that can also pass arguments to ceni for command line use then I have a quick and dirty method that works already that is very dangerous considering the program has suid. I can also write it correctly if he is interested.
EDIT: I went ahead and finished the wrapper. Now the wrapper safely passes arguments. 7.2K compiled with O3.
Anti, if you end up using ceni and want the suid C wrapper let me know so I can send it to you. If not I will just use it for myself like I already am.
EDIT2: Here is a demo of the wrapper, but wrapping the command ls instead of ceni to demonstrate the argument passing.
newlinks below (7.2K)
+ Download
+ chmod +x lsWrapper
Now it works just like ls should.
+ lsWrapper -l -a
Note: I did NOT rewrite ls. I wrapped ls in a C program. I can just change the program to wrap ceni instead then give the program suid and bingo. No more password entering to run ceni.
Compiled with gcc 4.1.3 and flags -Wall -pedantic -ansi -O3
EDIT 3: Here is the ceni wrapper. I am not sure why I did not just upload it to begin with. Sometimes perl makes me want to hurt myself. Feedback is appreciated. Unicode is not supported in this version. I will add support later if it is required.
new links below (7.3K)
+ Download
+ mv ceniWrapper /usr/bin/
+ chown root /usr/bin/ceniWrapper
+ chmod 5555 /usr/bin/ceniWrapper
Now you should be able to just run ceni by typing in "ceniWrapper"
To do:
check for suid and that owner is root
deb package
unicode
Compiled with gcc 4.1.3 and flags -Wall -pedantic -ansi -O3
