summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2018-09-07 13:48:11 +0200
committertorben2018-09-07 13:48:11 +0200
commit631b11159292523ff046414028759ea4c21add8f (patch)
tree008a0b325e1af00d44f2507a6da65937fcb9750a
parentfix. (diff)
downloadsystemd-init-631b11159292523ff046414028759ea4c21add8f.tar.gz
systemd-init-631b11159292523ff046414028759ea4c21add8f.tar.xz
systemd-init-631b11159292523ff046414028759ea4c21add8f.zip
adding wpa_cli
-rwxr-xr-xmodules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh2
-rwxr-xr-xmodules.d/systemd-networkd-ext/module-setup.sh2
-rw-r--r--modules.d/systemd-networkd-ext/restart-wireless-daemon.service2
3 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh
index 6857ef6e..6e2ab60f 100755
--- a/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh
+++ b/modules.d/systemd-networkd-ext/hooks/prepare-network-service-in-newroot.sh
@@ -102,7 +102,7 @@ if $SLX_ONLINE; then
# TODO remove "false" if pre-caching is working.
cat << EOF >"$NEWROOT/root/.bash_profile"
wget --output-document - http://10.21.9.111/BOOTED
-if [ ! -f /tmp/wireless-daemon-restarted ]; then
+if false && [ ! -f /tmp/wireless-daemon-restarted ]; then
systemctl start restart-wireless-daemon.service
touch /tmp/wireless-daemon-restarted
fi
diff --git a/modules.d/systemd-networkd-ext/module-setup.sh b/modules.d/systemd-networkd-ext/module-setup.sh
index 49be57eb..915cfd44 100755
--- a/modules.d/systemd-networkd-ext/module-setup.sh
+++ b/modules.d/systemd-networkd-ext/module-setup.sh
@@ -193,6 +193,7 @@ install() {
# wpa_supplicant version:
inst_multiple -o \
$systemdsystemunitdir/wpa_supplicant@.service \
+ wpa_cli \
wpa_supplicant
# optional:
# iwd version (needs dbus implication in initramfs):
@@ -419,7 +420,6 @@ EOF
# the hook script that will parse the "ip=" kernel command line
# parameter and generate the .link and .network files needed
# by systemd-networkd.
-
inst_hook pre-pivot 20 "$moddir/hooks/prepare-network-service-in-newroot.sh"
inst_hook pre-pivot 30 "$moddir/hooks/configure-dhcp-for-newroot.sh"
}
diff --git a/modules.d/systemd-networkd-ext/restart-wireless-daemon.service b/modules.d/systemd-networkd-ext/restart-wireless-daemon.service
index e4c803dc..562ec5a9 100644
--- a/modules.d/systemd-networkd-ext/restart-wireless-daemon.service
+++ b/modules.d/systemd-networkd-ext/restart-wireless-daemon.service
@@ -16,7 +16,7 @@ ExecStartPre=-/run/initramfs/usr/bin/sync
#ExecStartPre=-/run/initramfs/usr/bin/sleep 20
#ExecStart=/usr/bin/systemctl start iwd
ExecStart=/usr/bin/systemctl start wpa_supplicant@wireless.service
-#ExecStartPre=/usr/bin/systemctl start systemd-networkd
+#ExecStartPre=/usr/bin/systemctl (re-)start systemd-networkd
# Restarts dhcp lease to retrieve a valid unique ip.
RemainAfterExit=true
StandardError=null