1 Star 0 Fork 3

bryan/adsb-scripts

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fr24-nopackage.sh 1004 Bytes
一键复制 编辑 原始数据 按行查看 历史
techflyer 提交于 2023-01-19 13:15 . Update fr24-nopackage.sh
#!/bin/bash
apt update
apt install -y perl wget
# remove fr24feed in package form
apt purge -y fr24feed
# remove the fr24feed updater (should be removed with the package but let's make real sure)
rm -f /etc/cron.d/fr24feed_updater
set -e
if ! id -u fr24 &>/dev/null; then
adduser --system --no-create-home fr24 || true
addgroup fr24 || true
adduser fr24 fr24 || true
fi
cd
rm /tmp/fr24 -rf
mkdir -p /tmp/fr24
cd /tmp
wget -O fr24.deb https://repo-feed.flightradar24.com/rpi_binaries/fr24feed_1.0.34-0_armhf.deb
dpkg -x fr24.deb fr24
cp -f fr24/usr/bin/fr24feed* /usr/bin
if ! [[ -f /etc/fr24feed.ini ]]; then
cat >/etc/fr24feed.ini << "EOF"
bs=no
raw=no
mlat="no"
mlat-without-gps="no"
EOF
fi
chmod 666 /etc/fr24feed.ini
wget -O /etc/systemd/system/fr24feed.service https://raw.githubusercontent.com/wiedehopf/adsb-scripts/master/fr24feed.service
systemctl enable fr24feed
echo ----------------------------
echo fr24feed installed / updated!
echo ----------------------------
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bryan007/adsb-scripts.git
git@gitee.com:bryan007/adsb-scripts.git
bryan007
adsb-scripts
adsb-scripts
master

搜索帮助