diff options
author | Maxim Devaev <[email protected]> | 2022-01-08 18:05:47 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-01-08 18:05:47 +0300 |
commit | ef5f268ae2b2f18158ac62ede0d78e5e9ab47bb5 (patch) | |
tree | 6978b269f58ffffbe0d6bddb432d9bb72d249be1 | |
parent | 93a57e5e37271905a9678a94827d73d24be9e18b (diff) |
restore motd
-rw-r--r-- | kvmd.install | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd.install b/kvmd.install index e693e81a..93994f9d 100644 --- a/kvmd.install +++ b/kvmd.install @@ -43,4 +43,7 @@ post_upgrade() { [ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=pi3-disable-bt$/dtoverlay=disable-bt/g' /boot/config.txt [ ! -f /boot/config.txt ] || sed -i -e 's/^dtoverlay=dwc2$/dtoverlay=dwc2,dr_mode=peripheral/g' /boot/config.txt [ ! -f /etc/conf.d/rngd ] || (echo 'RNGD_OPTS="-o /dev/random -r /dev/hwrng -x jitter -x pkcs11 -x rtlsdr"' > /etc/conf.d/rngd) + + # Some update deletes /etc/motd, WTF + [ ! -f /etc/motd -a -f /etc/motd.pacsave ] && echo mv /etc/motd.pacsave /etc/motd } |