I bought new Pi b+. So i found my hungry wifi dongle can work on it well, I decided to put my Pi running headlessly over wifi. But problem is if wifi disconnects, the Pi wont reconnect.

I'm using Arch Linux.

The netctl profile I use:

   Description='wifi "mikroskeem" with ip'
   Key='<ransom key>'
   ExecUpPost='/usr/bin/ntpd -gq || true'

EDIT: I'm using Arch Linux, so no /etc/network/interfaces

I've enabled netctl-auto@wlan0

I've tried Wicd, but if i set IP manually, Pi can't reach internet(LAN works, ping google doesn't)

What do i need to change in that profile?

  • I would recommend you to set static IP anyway. Are you sure you can't reach internet? Try to ping directly an ip ping Sometimes it's just DNS what's cause problems. Pinging specific IP could help.
    – kotrfa
    Aug 9 '14 at 22:04
  • Post the contents of /etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf
    – Milliways
    Aug 9 '14 at 22:56
  • @kotrfa didn't work
    – mikroskeem
    Aug 10 '14 at 0:11
  • @Milliways I use Arch Linux, no /etc/network/interfaces for me. Netctl handles this
    – mikroskeem
    Aug 10 '14 at 0:12
  • I think I fixed it by adding Restart=always at the end of netctl configuration. Let's see if network goes off after 3hrs
    – mikroskeem
    Aug 10 '14 at 0:16

I fixed problem myself, by adding Restart=always at the end of netctl configuration.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.