From: Harald Hoyer Date: Fri, 26 Mar 2021 09:29:09 +0000 (+0100) Subject: fix(systemd-networkd): shellcheck for modules.d/02systemd-networkd X-Git-Tag: 054~265 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=231917e9b5ec2327c414953252b6211c2b25ba07;p=thirdparty%2Fdracut.git fix(systemd-networkd): shellcheck for modules.d/02systemd-networkd --- diff --git a/modules.d/02systemd-networkd/.shchkdir b/modules.d/02systemd-networkd/.shchkdir new file mode 100644 index 000000000..e69de29bb diff --git a/modules.d/02systemd-networkd/module-setup.sh b/modules.d/02systemd-networkd/module-setup.sh index eb711f361..c0a970ffc 100755 --- a/modules.d/02systemd-networkd/module-setup.sh +++ b/modules.d/02systemd-networkd/module-setup.sh @@ -19,12 +19,12 @@ installkernel() { # called by dracut install() { inst_multiple -o \ - $systemdutildir/systemd-networkd \ - $systemdutildir/systemd-networkd-wait-online \ - $systemdsystemunitdir/systemd-networkd-wait-online.service \ - $systemdsystemunitdir/systemd-networkd.service \ - $systemdsystemunitdir/systemd-networkd.socket \ - $systemdutildir/network/99-default.link \ + "$systemdutildir"/systemd-networkd \ + "$systemdutildir"/systemd-networkd-wait-online \ + "$systemdsystemunitdir"/systemd-networkd-wait-online.service \ + "$systemdsystemunitdir"/systemd-networkd.service \ + "$systemdsystemunitdir"/systemd-networkd.socket \ + "$systemdutildir"/network/99-default.link \ networkctl ip #hostnamectl timedatectl @@ -58,8 +58,7 @@ install() { for i in \ systemd-networkd-wait-online.service \ systemd-networkd.service \ - systemd-networkd.socket \ - ${NULL}; do + systemd-networkd.socket; do $SYSTEMCTL -q --root "$initdir" enable "$i" done }