Skip to content

Commit

Permalink
correct installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Sep 29, 2024
1 parent c9bdc1d commit 6c625fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tools/install_pi5
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
cnt=10
while test $cnt -gt 0; do
echo counter: $cnt
sudo -E apt update && cnt=-1 || sleep 7; let cnt=$cnt-1
sudo -E apt update --assume-yes && cnt=-1 || sleep 7; let cnt=$cnt-1
sync
done

Expand All @@ -38,7 +38,7 @@
cnt=10
while test $cnt -gt 0; do
echo counter: $cnt
sudo -E apt upgrade && cnt=-1 || sleep 7; let cnt=$cnt-1
sudo -E apt upgrade --assume-yes && cnt=-1 || sleep 7; let cnt=$cnt-1
sync
done

Expand Down
3 changes: 2 additions & 1 deletion tools/prepareimage_pi5.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ SRCPATH=`dirname $0`
echo "install autorun script:"
sudo cp pi/autorun_pi5 "$2/home/pi/autorun"
sudo chmod a+x "$2/home/pi/autorun"
sudo chown pi:pi "$2/home/pi/autorun"
# The next line does not work on host system:
#sudo chown pi:pi "$2/home/pi/autorun"

echo "register autorun script in /etc/rc.local:"
sudo sed -i -e '/exit 0/ d' -e '/.*autorun.*autorun/ d' -e '/.*home.pi.install.*home.pi.install/ d' -i "$2/etc/rc.local"
Expand Down

0 comments on commit 6c625fa

Please sign in to comment.