mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 00:59:23 +01:00
20 lines
658 B
Bash
20 lines
658 B
Bash
|
#!/bin/sh -eux
|
||
|
|
||
|
arch="$(uname -r | sed 's/^.*[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}\(-[0-9]\{1,2\}\)-//')"
|
||
|
debian_version="$(lsb_release -r | awk '{print $2}')"
|
||
|
major_version="$(echo $debian_version | awk -F. '{print $1}')"
|
||
|
|
||
|
# Disable systemd apt timers/services
|
||
|
systemctl stop apt-daily.timer
|
||
|
systemctl stop apt-daily-upgrade.timer
|
||
|
systemctl disable apt-daily.timer
|
||
|
systemctl disable apt-daily-upgrade.timer
|
||
|
systemctl mask apt-daily.service
|
||
|
systemctl mask apt-daily-upgrade.service
|
||
|
systemctl daemon-reload
|
||
|
|
||
|
## leave update and upgrade to the build_sdcard.sh
|
||
|
#apt-get update
|
||
|
#apt-get -y upgrade linux-image-$arch
|
||
|
#apt-get -y install linux-headers-$(uname -r)
|