-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for rpi4 and other architechtures (#24)
* add support for rpi4 (arm32v7) and other architectures
- Loading branch information
Showing
5 changed files
with
67 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/sh | ||
arch=$(uname -m) | ||
|
||
case $arch in | ||
armv7l) | ||
url=https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_${FR24FEED_VERSION}_armhf.tgz | ||
dirname=fr24feed_armhf | ||
;; | ||
*) | ||
url=https://repo-feed.flightradar24.com/linux_x86_64_binaries/fr24feed_${FR24FEED_VERSION}_amd64.tgz | ||
dirname=fr24feed_amd64 | ||
;; | ||
esac | ||
|
||
mkdir /fr24feed && \ | ||
wget -O /fr24feed/fr24feed.tgz $url && \ | ||
cd /fr24feed && \ | ||
tar -xzf fr24feed.tgz && \ | ||
mv $dirname fr24feed && \ | ||
rm /fr24feed/fr24feed.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
arch=$(uname -m) | ||
|
||
case $arch in | ||
armv7l) | ||
url=https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-armhf.tar.gz | ||
;; | ||
*) | ||
url=https://github.com/just-containers/s6-overlay/releases/download/v1.21.8.0/s6-overlay-amd64.tar.gz | ||
;; | ||
esac | ||
|
||
wget -O /tmp/s6-overlay.tar.gz $url && \ | ||
tar xzf /tmp/s6-overlay.tar.gz -C / && rm /tmp/s6-overlay.tar.gz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#!/usr/bin/with-contenv bash | ||
if [ "$SERVICE_ENABLE_FR24FEED" != "false" ] | ||
then | ||
/fr24feed/fr24feed_amd64/fr24feed | ||
/fr24feed/fr24feed/fr24feed | ||
else | ||
tail -f /dev/null | ||
fi | ||
fi |