summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortorben2018-09-06 10:35:31 +0200
committertorben2018-09-06 10:35:31 +0200
commitfeccaa95b5f81822e038cc13686a4371708d9f42 (patch)
treefb3918cfaf0c11ba26ad85a6678b97a3b392cb78
parentImptrove boot process performance. (diff)
downloadsystemd-init-feccaa95b5f81822e038cc13686a4371708d9f42.tar.gz
systemd-init-feccaa95b5f81822e038cc13686a4371708d9f42.tar.xz
systemd-init-feccaa95b5f81822e038cc13686a4371708d9f42.zip
fix.
-rwxr-xr-xmodules.d/systemd-networkd-ext/module-setup.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules.d/systemd-networkd-ext/module-setup.sh b/modules.d/systemd-networkd-ext/module-setup.sh
index f2edbef0..255d8ad5 100755
--- a/modules.d/systemd-networkd-ext/module-setup.sh
+++ b/modules.d/systemd-networkd-ext/module-setup.sh
@@ -373,9 +373,10 @@ EOF
cat << EOF
)
if \\
- [ ! -f /mnt/slx_writable_device/booted_to_wlan ] && \\
- [[ "\$SLX_WIRELESS_MAC" != false ]] ||
- \$SLX_WRITABLE_DEVICE_REMOVE_CACHE
+ [[ "\$SLX_WIRELESS_MAC" != false ]] && [[
+ \$SLX_WRITABLE_DEVICE_REMOVE_CACHE || \\
+ ! -f /mnt/slx_writable_device/booted_to_wlan
+ ]]
then
for path in "\${file_paths[@]}"; do
if ! [ -d "\$NEWROOT\$(dirname "\$path")" ]; then