summaryrefslogtreecommitdiff
path: root/kvmd.install
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-03-13 21:36:43 +0200
committerMaxim Devaev <[email protected]>2024-03-13 21:37:41 +0200
commit1883da42a53ace2d2c631f2cd6955f07318a5fd1 (patch)
tree37d898b7970039456a54243a0dc5b961a414c6fa /kvmd.install
parent3ee1fba0d00f8741384b2f4be648b1cbb22ea7c7 (diff)
kernel update
Diffstat (limited to 'kvmd.install')
-rw-r--r--kvmd.install5
1 files changed, 4 insertions, 1 deletions
diff --git a/kvmd.install b/kvmd.install
index 38158715..b46f548f 100644
--- a/kvmd.install
+++ b/kvmd.install
@@ -56,7 +56,7 @@ post_upgrade() {
echo "==> Patching configs ..."
- if [[ "$(vercmp "$1" 3.301)" -lt 0 ]]; then
+ if [[ "$(vercmp "$2" 3.301)" -lt 0 ]]; then
[ ! -f /etc/fstab ] || (sed -i -e "s|,data=journal||g" /etc/fstab && touch -t 200701011000 /etc/fstab)
[ ! -f /etc/fstab ] || (sed -i -e "/tmpfs \/run\s/d" /etc/fstab && touch -t 200701011000 /etc/fstab)
[ ! -f /etc/pacman.conf ] || sed -i -e "s|^Server = https://pikvm.org/repos/|Server = https://files.pikvm.org/repos/arch/|g" /etc/pacman.conf
@@ -67,6 +67,9 @@ post_upgrade() {
[ ! -f /etc/pam.d/system-auth ] || sed -i -e '/\<pam_systemd_home\.so\>/ s/^#*/#/' /etc/pam.d/system-auth
[ -e /etc/systemd/network/99-default.link ] || ln -s /dev/null /etc/systemd/network/99-default.link
fi
+ if [[ "$(vercmp "$2" 3.317)" -lt 0 ]]; then
+ [ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=i2c-rtc,pcf8563$/dtoverlay=i2c-rtc,pcf8563,wakeup-source/g' /boot/config.txt
+ fi
# Some update deletes /etc/motd, WTF
# shellcheck disable=SC2015,SC2166