From 643f14b42f9ea16d5de11cce06748882aab63e6b Mon Sep 17 00:00:00 2001 From: Luigi Freitas Cruz Date: Wed, 26 Feb 2020 02:20:23 -0300 Subject: [PATCH] Fix permissions and desktop shortcut. --- builder/stage4/04-pisdr-system/02-run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/stage4/04-pisdr-system/02-run.sh b/builder/stage4/04-pisdr-system/02-run.sh index 0753b05..08261cc 100755 --- a/builder/stage4/04-pisdr-system/02-run.sh +++ b/builder/stage4/04-pisdr-system/02-run.sh @@ -1,9 +1,9 @@ #!/bin/bash -e -on_chroot << EOF -mkdir -p "/home/${FIRST_USER_NAME}/PiSDR" -ln -sf "/home/${FIRST_USER_NAME}/PiSDR" PiSDR +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software" +install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Radios/" -mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software" -mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Radios" +on_chroot << EOF +ln -sf "/home/${FIRST_USER_NAME}/PiSDR" "/home/${FIRST_USER_NAME}/Desktop/PiSDR" EOF \ No newline at end of file