Browse Source

Fix dump1090 file install.

tags/5.1.0
Luigi Cruz 3 years ago
parent
commit
86224f5b9e
1 changed files with 7 additions and 14 deletions
  1. +7
    -14
      stage4/32-pisdr-dump1090/00-run.sh

+ 7
- 14
stage4/32-pisdr-dump1090/00-run.sh View File

@@ -1,19 +1,12 @@
#!/bin/bash -e

on_chroot << EOF
mkdir -p "/home/${FIRST_USER_NAME}/PiSDR/Software"
cd "/home/${FIRST_USER_NAME}/PiSDR/Software"

if [ ! -d "dump1090" ]; then
install -v -o 1000 -g 1000 -d "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090/"
fi
install -v -o 1000 -g 1000 -m 755 targets/enable.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090/"
install -v -o 1000 -g 1000 -m 755 targets/disable.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090/"
install -v -o 1000 -g 1000 -m 755 targets/configure_rbfeeder.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090/"
install -v -o 1000 -g 1000 -m 755 targets/configure_fr24feed.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090/"

install -v -o 1000 -g 1000 -m 755 targets/enable.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090"
install -v -o 1000 -g 1000 -m 755 targets/disable.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090"
install -v -o 1000 -g 1000 -m 755 targets/configure_rbfeeder.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090"
install -v -o 1000 -g 1000 -m 755 targets/configure_fr24feed.sh "${ROOTFS_DIR}/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090"

cd dump1090
on_chroot << EOF
cd "/home/${FIRST_USER_NAME}/PiSDR/Software/dump1090"

repository="https://github.com/wiedehopf/readsb.git"

@@ -139,4 +132,4 @@ echo "[PiSDR] Deleting build files to save space."
rm -fr /usr/local/share/tar1090/git-db
rm -fr /usr/local/share/tar1090/git

EOF
EOF

Loading…
Cancel
Save