From 80492c6c2669ce6af41f4b3a9b3a20bcc940e9aa Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 25 May 2025 10:55:25 -0400 Subject: [PATCH] Update update with .asoundrc check and update --- update | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/update b/update index f350f979..6c8b2646 100755 --- a/update +++ b/update @@ -119,6 +119,21 @@ else FLAG=1 fi +FILE=/root/.asoundrc +if [ -f "$FILE" ]; then + if [[ $(diff /home/pi/CubeSatSim/asoundrc /root/.asoundrc) ]]; then + echo "changed .asoundrc for root user." + sudo cp /home/pi/CubeSatSim/asoundrc /root/.asoundrc + FLAG=1 + else + echo "no change to .asoundrc for root user." + fi +else + echo "creating .asoundrc for root user." + sudo cp /home/pi/CubeSatSim/asoundrc /root/.asoundrc + FLAG=1 +fi + FILE=/home/pi/CubeSatSim/sstv_image_1_320_x_256.jpg if [ ! -f "$FILE" ]; then echo "Copying SSTV image 1."