Skip posinstall on x86_64

This commit is contained in:
Konstantin Lampalzer 2022-12-17 23:40:07 +01:00
parent 19d98f1f04
commit 4c24717278

7
client/postinstall.sh Normal file → Executable file
View file

@ -1,3 +1,10 @@
#!/usr/bin/env bash
if [[ $(uname -m) == "x86_64" ]]; then
echo "Not running on RPi - Skipping postinstall"
exit 0
fi
grep -qxF "apt update" /etc/rc.local
if [ $? -ne 0 ]; then
echo "adding apt update to rc.local"