
Which WiFi card/dongle do you use? Use lsusb or lspci and post the results. Sounds like you will need to compile a new kernel. This is my WiFi script: #!/bin/sh # # /etc/rc.d/net: start/stop wireless network (wpa 1/2) # case $1 in start) # loopback /sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host /sbin/ip link set lo up # wpa 1/2 wireless with dhcp /usr/sbin/wpa_supplicant -B -D nl80211 -i wlan0 -c /etc/wifi.conf /sbin/dhcpcd wlan0 ;; stop) /usr/bin/killall -q /sbin/dhcpcd /usr/bin/killall -q /usr/sbin/wpa_supplicant /sbin/ip link set lo down /sbin/ip addr del 127.0.0.1/8 dev lo ;; restart) $0 stop $0 start ;; *) echo "usage: $0 [start|stop|restart]" ;; esac # End of file -- Rex <bjorn@krstarica.com> On Sun, 23 Mar 2014 14:11:57 +0700 Petr Shevtsov <petr.shevtsov@gmail.com> wrote:
Hello,
I've got some problems with my WiFi start script:
1. From time to time it just «looses» the connection, so I have to manually reconnect it with `/etc/rc.d/wifi restart`; 2. From time to time it doesn't reconnect on my laptop wake-up after suspend; 2. dhcpcd processes aren't properly killed, so after the days of using (and dozens of wifi restarts) I see lots of running processes with `ps ax | grep dhcpcd`.
My /etc/rc.d/wifi script is the following:
#!/bin/sh # # /etc/rc.d/wifi: start/stop wireless network #
case $1 in start) # loopback /sbin/ip addr add 127.0.0.1/8 dev lo broadcast + scope host /sbin/ip link set lo up # wireless /sbin/ip link set wlan0 up /usr/sbin/wpa_supplicant -B -iwlan0 -c/etc/wpa.conf /sbin/dhcpcd -t 30 -h $HOSTNAME wlan0 ;; stop) /sbin/dhcpcd -x rm -f /var/run/dhcpcd-wlan0.pid /sbin/ip link set lo down /sbin/ip addr del 127.0.0.1/8 dev lo /sbin/ip link set wlan0 down /usr/bin/killall -q /usr/sbin/wpa_supplicant rm -f /var/run/wpa_supplicant/wlan0 ;; restart) $0 stop $0 start ;; *) echo "usage: $0 [start|stop|restart]" ;; esac
Thanks!
-- Petr Shevtsov _______________________________________________ CRUX mailing list CRUX@lists.crux.nu http://lists.crux.nu/mailman/listinfo/crux