代码: 全选
yuan@yuan-Lenovo:~/opt$ ls
README rjsupplicant.sh x64 x86
yuan@yuan-Lenovo:~/opt$ sudo ./rjsupplicant.sh --help
rjsupplicant - usage
-a --auth authenticate mode (with parameter[0/1], 0 means "wireles
s", 1 means "wired". default take last authmode or "wire
d" without this option)
-d --dhcp dhcp(with parameter[0/1], 0 means using system interface
config, 1 means get ip by dhcp server; take last config
without this option)
-n --nic nic (with parameter[eg. eth0, detail for "-l"], default
take last nic or first nic without this option)
-s --service service (with parameter["servicename", detail for "-l"],
default take last service name or first service name wi
thout this option)
-I --ssid wireless ssid (with parameter["ssid", detail for "-l"],
only for wirless auth mode. default take last ssid or fi
rst ssid without this option)
-w --wlan scan wireless network: without parameter, take "-n" opti
on to show wireless ssid by the specific nic
-u --user user name (with parameter[detail for "-l"], default take
last user name without this option)
-p --password password (with parameter, it can be seted after running
if without password, default is null unless save passwor
d before)
-S --save save password (with parameter[0/1], 0 means not save, 1
means save, default take last config without this option
)
-q --quit quit program(without parameter,take this option(-q) to q
uit the program)
-l --list list information: without parameter, only show config wi
th this option, sush as version, authmode, nic, service[
option], user, service list[opt], nic list. this command
default to list current authentication information)
--comments run as daemon,run log in "/home/yuan/opt/x86/log/run.log
".
yuan@yuan-Lenovo:~/opt$ sudo ./rjsupplicant.sh -a 1 -d 1 -u yuanbx
sysctl: write error: Bad file descriptor
sysctl: write error: Bad file descriptor
sysctl: write error: Bad file descriptor
AuthMode Wired Authentication
Adapter eth1
UserName yuanbx
service internet
2013-04-12 16:02:35 Initializing.....
2013-04-12 16:02:36 Lookup the switch...
2013-04-12 16:02:36 Connecting radius server...
2013-04-12 16:02:36 Authenticating now...
2013-04-12 16:02:36 Geting IP Address...
2013-04-12 16:02:39 Lookup the switch...
2013-04-12 16:02:39 Connecting radius server...
2013-04-12 16:02:39 Authenticating now...
2013-04-12 16:02:39 Success
2013-04-12 16:02:39 Management Tips:
***
代码: 全选
2013-04-12 16:03:39 Client Prompt:
You install multi-NIC, please make all non-authentication ad
apters disable, and do authentication.
而我用另一个系统 bodhi 2.3 (基于ubuntu 12.04) 就没有这样的问题。