Trouble in paradise, wpa+wpa2 not working

I had the same issue. To have auto connect to wifi at startup, for now, you have to make a shell script like this:

#!/bin/sh
ifconfig /dev/net/atheros/0 join MYSSID

You have to replace /dev/net/atheros/0 with your WLAN interface and MYSSID with the name of your SSID.

Then put this script in /boot/home/config/settings/boot/launch

[quote=Pitmaster]I try to install software, reading that I have to unpack them in /boot/common/apps/ but this directory doesn’t exist.
[/quote]

With latest nightlies (with PM) you can:
extract regular apps (eg zip files) to /boot/home/config/non-packaged/apps / (create the “apps” folder if doesnt exist)
Or install hpkg files, moving them to /boot/home/config/packages. You can find packages using HaikuDepot or go on Haikuware.com (personally, i’m updating apps as hpkg), but most of them aren’t still available as hpkg.

Recently file system structure has changed quite a bit. See https://dev.haiku-os.org/wiki/PackageManagement/Migration and http://www.haiku-os.org/guides/daily-tasks/install-applications

[quote=Giova84]I had the same issue. To have auto connect to wifi at startup, for now, you have to make a shell script like this:

#!/bin/sh
ifconfig /dev/net/atheros/0 join MYSSID

You have to replace /dev/net/atheros/0 with your WLAN interface and MYSSID with the name of your SSID.

Then put this script in /boot/home/config/settings/boot/launch[/quote]

Doesn’t work. Made a textfile on the desktop, called it startwifi and edit it with PE.
#!/bin/sh
ifconfig /dev/net/atheroswifi/0 join Mijnnetwerk 102342348765

cd Desktop
cp startwifi /boot/home/config/settings/boot/launch
made it starteble for everyone.

No succes, what’s wrong?

Pit

If you have saved the password for your wifi at the first connection, you doesn’t need to insert password again using ifconfig.
Stupid question: did you set the script as executable? (Maybe you mean startable=executable? :slight_smile:

[quote=Giova84]If you have saved the password for your wifi at the first connection, you doesn’t need to insert password again using ifconfig.
Stupid question: did you set the script as executable? (Maybe you mean startable=executable? :-)[/quote]

Yes. Sorry, wrong word “starteble”…
Havend used English for a longer period.

I removed the key and saved it. Now it opens the script with StyleEdit

Pit

It is indeed executable. When I start it from a terminal I get “Device/File/Resource busy” message.
The device is already up. ifconfig Device down doesn’t work.

Pit

Perhaps you need to ifconfig /dev/net/atheroswifi/0 up before?