summaryrefslogtreecommitdiff
path: root/scripts/kvmd-bootconfig
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-10-29 19:59:24 +0300
committerMaxim Devaev <[email protected]>2021-10-29 19:59:24 +0300
commitda3468047a21218f7d54c70cf2f2309cee0de3f0 (patch)
tree3f6a945bfdce17b5076c730d05ada7bff6d3dd61 /scripts/kvmd-bootconfig
parent1f6bd0c5905ca304993e505a389b8193522f7d2c (diff)
refactoring
Diffstat (limited to 'scripts/kvmd-bootconfig')
-rwxr-xr-xscripts/kvmd-bootconfig4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kvmd-bootconfig b/scripts/kvmd-bootconfig
index bdea9c1b..80a700e2 100755
--- a/scripts/kvmd-bootconfig
+++ b/scripts/kvmd-bootconfig
@@ -116,7 +116,7 @@ fi
# If the WIFI_ESSID is defined, configure wlan0
if [ -n "$WIFI_ESSID" ]; then
WIFI_IFACE="${WIFI_IFACE:-wlan0}"
- cat <<end_wifi_config > "/etc/systemd/network/$WIFI_IFACE.network"
+ cat <<end_of_file > "/etc/systemd/network/$WIFI_IFACE.network"
[Match]
Name=$WIFI_IFACE
@@ -127,7 +127,7 @@ DNSSEC=no
# Use same IP by forcing to use MAC address for clientID
[DHCP]
ClientIdentifier=mac
-end_wifi_config
+end_of_file
wpa_passphrase "$WIFI_ESSID" "$WIFI_PASSWD" > "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
systemctl enable "wpa_supplicant@$WIFI_IFACE.service" || true
REBOOT=1