Skip posinstall on x86_64
This commit is contained in:
parent
19d98f1f04
commit
4c24717278
1 changed files with 7 additions and 0 deletions
7
client/postinstall.sh
Normal file → Executable file
7
client/postinstall.sh
Normal file → Executable 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
|
grep -qxF "apt update" /etc/rc.local
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "adding apt update to rc.local"
|
echo "adding apt update to rc.local"
|
||||||
|
|
Reference in a new issue