Re: [systemd-devel] Network.service for wifi
Follow up to my previous message: The systemd need to determine if my firmware of my wifi has been loaded by the kernel. Any idea? Regards, john On Wed, Dec 5, 2012 at 3:44 PM, John Tobias john.tobias...@gmail.com wrote: Hi All, I have a wireless interface that I have created a .service. But, the wlan0 interface takes a while before it shows up in the system. I would like to know how to tell to systemd to check if the wlan0 interface is available, then if its available that's the time the systemd execute ExecStart. Any idea? Regards, john ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Network.service for wifi
On Wed, Dec 05, 2012 at 04:36:04PM -0800, John Tobias wrote: Follow up to my previous message: The systemd need to determine if my firmware of my wifi has been loaded by the kernel. Any idea? Probably device like sys-subsystem-net-devices-wlan0.device will appear. You can use it as an ordering point. -- Tomasz TorczThere exists no separation between gods and men: xmpp: zdzich...@chrome.pl one blends softly casual into the other. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] Network.service for wifi
I use this: grep -R wlan2 /etc/udev/rules.d/ /etc/udev/rules.d/70-net.rules:SUBSYSTEM==net, ACTION==add, DRIVERS==?*, ATTR{address}==00:27:19:f5:62:90, ATTR{dev_id}==0x0, ATTR{type}==1, NAME=wlan2, ENV{SYSTEMD_WANTS}=wireless@wlan2.target, GOTO=net_ok # cat /etc/systemd/system/wireless\@.target [Unit] Description=Start services for wireless device %i # cat /etc/systemd/system/karma\@.target [Unit] Description=KARMA hostapd attack suite (on %i interface) BindsTo=karma-network@%i.service Wants=karma-dhcp@%i.service karma-hostapd@%i.service StopWhenUnneeded=yes Conflicts=kismet@%i.service [Install] WantedBy=wireless@%i.target # systemctl enable karma@wlan2.target ln -s '/etc/systemd/system/karma@.target' '/etc/systemd/system/wireless@wlan2.target.wants/karma@wlan2.target' # systemctl status sys-subsystem-net-devices-wlan2.device sys-subsystem-net-devices-wlan2.device - USB2.0_WLAN Loaded: loaded Active: active (plugged) since Чт. 2012-12-06 11:44:06 EET; 2min 24s ago Device: /sys/devices/pci:00/:00:1d.7/usb1/1-3/1-3:1.0/net/wlan2 # systemctl status karma@wlan2.target karma@wlan2.target - KARMA hostapd attack suite (on wlan2 interface) Loaded: loaded (/etc/systemd/system/karma@.target; enabled) Active: active since Чт. 2012-12-06 11:44:07 EET; 2min 45s ago ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel