Skip to content

Commit

Permalink
patch skyaware nonsense
Browse files Browse the repository at this point in the history
  • Loading branch information
fredclausen committed Oct 4, 2023
1 parent 372df4c commit 41cd5aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rootfs/etc/s6-overlay/scripts/skyaware978
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ set -eo pipefail

sleep 5

# patch skyaware978 to remove the "v=2?" from the URL
sed -i 's/v=2?//g' /usr/share/dump978-fa/html/index.html
sed -i 's/flightFeederCheck();//g' /usr/share/dump978-fa/html/script.js
sed -i 's/setStatsLink();//g' /usr/share/dump978-fa/html/script.js
sed -i 's/<button id="stats_page_button" class="stats_button">Go to My ADS-B Statistics Page<\/button>//g' /usr/share/dump978-fa/html/index.html


if [[ -n "${LON}" ]] && [[ -n "${LAT}" ]]; then
optstr="--lat ${LAT} --lon ${LON}"
fi
Expand Down

0 comments on commit 41cd5aa

Please sign in to comment.