Hello!
I’m using my computer on a TTLS network, so I need wpa_supplicant to make it work.
Ubuntu 8.10 has a nice graphical configuration, on opensuse I’m trying to manually set-up the same thing.
The problem is that wpa_supplicant must be run before dhcp kicks in, so script in /etc/sysconfig/network/if-up.d/ will run this too late (I get an internal IP with no external access), editing:
/etc/ifplugd/ifplugd.action
doesn’t work either, because probably plugd is called with custom parameters and ignoring default config file.
The best working solution till now is to edit:
/etc/sysconfig/network/scripts/ifplugd-selectif
and inject this piece of code into up event:
if $INTERFACE == "eth0" ]; then
echo "eth0 detected, using wpa_supplicant"
/usr/sbin/wpa_supplicant -Dwired -ieth0 -c /etc/wpa_supplicant.conf -d > /dev/null &
fi
Modifying the script itself is not really a good solution, since they get replaced on update, so it is possible to do this in a better way (via some config)?
The goal is to run wpa_supplicant before eth0 is brought up, so it have enough time to authenticate.