给定下表
$ connmanctl services
*AO MyNetwork wifi_dc85de828967_68756773616d_managed_psk
OtherNET wifi_dc85de828967_38303944616e69656c73_managed_psk
AnotherOne wifi_dc85de828967_3257495245363836_managed_wep
FourthNetwork wifi_dc85de828967_4d7572706879_managed_wep
AnOpenNetwork wifi_dc85de828967_4d6568657272696e_managed_none
我希望能够连接到网络,例如OtherNET
,使用 stringOtherNET
而不是 long wifi_dc85de828967_38303944616e69656c73_managed_psk
,因为我不想计算我按下的次数Tab和/或检查wifi_
提示中的行是否对应于预期的网络.
只有 connman可以做到这一点吗?还是我真的必须自己写一个包装器?
包含的man
页面connmanctl
services Shows a list of all available services. This includes the nearby wifi networks, the wired ethernet connections, blue‐ tooth devices, etc. An asterisk in front of the service indicates that the service has been connected before.
和
connect service Connects to the given service. Some services need a so- called provisioning file in order to connect to them, see connman-service.config(5).
两者都没有说明输出的格式或命令的使用。
类似地,Arch Linux 上的 wiki将最后一列称为以 .开头的第二个字段wifi_
。