From 1c353bec21b723726f467cfbf3ee59f9d7e03575 Mon Sep 17 00:00:00 2001 From: crondog Date: Mon, 17 Mar 2014 22:19:02 +1100 Subject: [PATCH] Update README with more wpa --- README.md | 3 +-- wpa_supplicant-nl80211@.service | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 wpa_supplicant-nl80211@.service diff --git a/README.md b/README.md index 099670f..dae4875 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,7 @@ initramfs (which I am haven't done yet) 4: Copy firmware.service to /etc/systemd/system/ 5: ln -s /etc/systemd/system/firmware.service /etc/systemd/system/multi-user.target.wants/firmware.service -6: Create a wpa_supplicant-nl80211@wlan0.service with your wpa_supplicant.conf -details +6: cp wpa_supplicant-nl80211@wlan0.service /etc/systemd/system/ and then ln -s /etc/systemd/system/wpa_supplicant-nl80211@wlan0.service /etc/systemd/system/multi-user.target.wants/wpa_supplicant-nl80211@wlan0.service Idealy you can use the original service file but since the ramdisk does not load the module, it requires the firmware.service 7: ln -s /etc/systemd/system/dhcpcd.service /etc/systemd/system/multi-user.target.wants/dhcpcd.service 8: ln -s /etc/systemd/system/sshd.service /etc/systemd/system/multi-user.target.wants/sshd.service diff --git a/wpa_supplicant-nl80211@.service b/wpa_supplicant-nl80211@.service new file mode 100644 index 0000000..59c8922 --- /dev/null +++ b/wpa_supplicant-nl80211@.service @@ -0,0 +1,16 @@ +[Unit] +Description=WPA supplicant daemon (interface- and nl80211 driver-specific version) +#Requires=sys-subsystem-net-devices-%i.device +#After=sys-subsystem-net-devices-%i.device +Requires=firmware.service +After=firmware.service + +# NetworkManager users will probably want the dbus version instead. + +[Service] +Type=oneshot +ExecStart=/usr/bin/sleep 2 +ExecStart=/usr/sbin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant.conf -Dnl80211 -i%I + +[Install] +Alias=multi-user.target.wants/wpa_supplicant-nl80211@wlan0.service