Надоел кабель, решил поиграться с wifi. Оно работает, только ругань мешает - как бы ее убрать?
Ругается так: «* ERROR: net.wlp2s0 failed to start».
До:
# ifconfig wlp2s0
wlp2s0: flags=4098<BROADCAST,MULTICAST> mtu 1500
ether e8:de:27:14:b5:f7 txqueuelen 1000 (Ethernet)
Поднимаем:
# /etc/init.d/net.wlp2s0 -v start
* Bringing up interface wlp2s0
* Skipping module adsl due to missing program: /usr/sbin/adsl-start /usr/sbin/pppoe-start
* Skipping module br2684ctl due to missing program: br2684ctl
* Skipping module bridge due to missing program: brctl
* Skipping module clip due to missing program: /usr/sbin/atmsigd
* Skipping module ethtool due to missing program: ethtool
* Skipping module netplugd due to missing program: /sbin/netplugd
* Skipping module ifplugd due to missing program: /usr/sbin/ifplugd
* Skipping module ipppd due to missing program: /usr/sbin/ipppd
* Skipping module firewalld due to missing program: firewall-cmd
* Skipping module pppd due to missing program: /usr/sbin/pppd
* Skipping module dhclient due to missing program: /sbin/dhclient
* Skipping module pump due to missing program: /sbin/pump
* Loaded modules: apipa arping bonding tuntap ccwgroup macvlan macchanger macnet wpa_supplicant ssidnet iproute2 system vlan dhcpcd ip6rd ip6to4
* ip link set dev wlp2s0 up
* Configuring wlp2s0 for MAC address E8:DE:27:14:B5:F7 ... [ ok ]
* Starting wpa_supplicant on wlp2s0 ...
* start-stop-daemon: fopen `/var/run/wpa_supplicant-wlp2s0.pid': No such file or directory
* Detaching to start `/usr/sbin/wpa_supplicant' ...
Successfully initialized wpa_supplicant [ ok ]
* Starting wpa_cli on wlp2s0 ...
* start-stop-daemon: fopen `/var/run/wpa_cli-wlp2s0.pid': No such file or directory
* Detaching to start `/usr/bin/wpa_cli' ... [ ok ]
* Backgrounding ... ...
* ERROR: net.wlp2s0 failed to start
Выругалось, но работает (и даже файлы, на которые оно ругалось, присутствуют):
# ifconfig wlp2s0
wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.179 netmask 255.255.255.0 broadcast 192.168.1.255
ether e8:de:27:14:b5:f7 txqueuelen 1000 (Ethernet)
# ps -p `cat /var/run/wpa_cli-wlp2s0.pid`
PID TTY TIME CMD
9645 ? 00:00:00 wpa_cli
# ps -p `cat /var/run/wpa_supplicant-wlp2s0.pid`
PID TTY TIME CMD
9640 ? 00:00:00 wpa_supplicant
# ping -s 1400 -c 100 -f 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 1400(1428) bytes of data.
--- 192.168.1.1 ping statistics ---
100 packets transmitted, 100 received, 0% packet loss, time 181ms
rtt min/avg/max/mdev = 1.209/1.765/22.663/2.172 ms, pipe 2, ipg/ewma 1.838/1.423 ms
Конфиги:
# grep wlp2s0 /etc/conf.d/net
modules_wlp2s0="wpa_supplicant"
config_wlp2s0="dhcp"
# cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
ssid="OpenWrt"
psk="12345678"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}