Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Feb 27, 2025
1 parent e7d4f7f commit 97dbc17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/kvmd-bootconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ source /usr/share/kvmd/platform || true

rw

need_reboot() {
touch /boot/pikvm-reboot.txt
}


# ========== First boot and/or Avahi configuration ==========

Expand Down Expand Up @@ -148,7 +152,7 @@ if [ -n "$ENABLE_AVAHI" ]; then
make_avahi_service
fi
systemctl enable avahi-daemon || true
touch /boot/pikvm-reboot.txt
need_reboot
fi


Expand All @@ -171,7 +175,7 @@ TTYVHangup=no
TTYVTDisallocate=no
end_of_file
systemctl enable getty@ttyGS0.service
touch /boot/pikvm-reboot.txt
need_reboot
fi


Expand Down Expand Up @@ -271,7 +275,7 @@ end_of_file
sed -i -e 's/^}/\tscan_ssid=1\n}/g' "/etc/wpa_supplicant/wpa_supplicant-$WIFI_IFACE.conf"
fi
systemctl enable "wpa_supplicant@$WIFI_IFACE.service" || true
touch /boot/pikvm-reboot.txt
need_reboot
fi


Expand Down

0 comments on commit 97dbc17

Please # to comment.