https://github.com/nispor/nipart 文档:https://nispor.github.io/nipart/
NetworkManager太笨重了,用Rust写了个替代的。
内核通讯是rust-netlink,wifi基于wpa_supplicant DBUS API, DHCP用mozim, YAML API改了一点点nmstate schema.
支持no-daemon模式,配置静态IP的WIFI 可以用:
echo '
version: 1
routes:
config:
- destination: 0.0.0.0/0
next-hop-interface: wlan0
next-hop-address: 192.0.2.1
metric: 100
interfaces:
- name: wlan0
type: wifi-phy
state: up
mtu: 1492
ipv4:
enabled: true
dhcp: false
address:
- ip: 192.0.2.99
prefix-length: 24
wifi:
ssid: Test-WIFI
password: your_password!
' | sudo npt apply - --no-daemon
用了一个多月了,还算稳定,但项目还比较早期,多包涵。
Ext Link: https://github.com/nispor/nipart
1
共 0 条评论, 1 页
评论区
写评论还没有评论