Add files via upload
Этот коммит содержится в:
@@ -0,0 +1,12 @@
|
|||||||
|
Заходим в хотспот, вкладки:</br>
|
||||||
|
Configuration/Expert/SSH Access</br>
|
||||||
|
Вводим логин - pi-star, </br>
|
||||||
|
пароль - raspberry. (ПРИ ВВОДЕ НЕ ОТОБРАЖАЕТСЯ!)</br>
|
||||||
|
копируем и вставляем следующий текст: </br></br>
|
||||||
|
<div style="border: 1px solid rgb(255, 152, 0); padding: 0.625rem; background-color: #fff3e0; color: #aa3510; box-shadow: rgba(0, 0, 0, 0.24) 0px 1px 2px;">
|
||||||
|
<code>rpi-rw; wget --user=yktsrv --ask-password https://xlx.dmrykt.ru/pistar/xlx.sh; chmod +x ./xlx.sh; sudo /home/pi-star/xlx.sh;</code></div></br>
|
||||||
|
<b>enter</b></br>
|
||||||
|
пароль для установки (Вам должны были выдать при регистрации) - . (ПРИ ВВОДЕ НЕ ОТОБРАЖАЕТСЯ!)</br>
|
||||||
|
<b>enter</b></br>
|
||||||
|
ждем надпись <b>Finish </b></br>
|
||||||
|
<hr></br>
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Setup SML Scripts - UNIT</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Setup SML Scripts - UNIT</h1>
|
||||||
|
<p>Setup SML Scripts - UNIT</p>
|
||||||
|
<hr>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=XLX launcher scripts
|
||||||
|
Wants=xlx.timer
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
User=root
|
||||||
|
ExecStart=xlx-update
|
||||||
|
ExecStart=xlx-getdmrid
|
||||||
|
ExecStart=xlx-gethost
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=XLX launcher scripts
|
||||||
|
Requires=xlx.service
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
Unit=xlx.service
|
||||||
|
OnCalendar=*-*-* *:00/10:00
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
XLXFOLDER=/xlx
|
||||||
|
|
||||||
|
if [ -f /usr/local/sbin/pistar-daily.cron ];then
|
||||||
|
sed -i "s/^\/usr\/local\/sbin\/HostFilesUpdate.sh.*/\/usr\/local\/sbin\/HostFilesUpdate.sh;xlx-gethost;xlx-rw;xlx-getdmrid-force;/" /usr/local/sbin/pistar-daily.cron
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -L /etc/systemd/system/xlx.service ]; then
|
||||||
|
ln -s ${XLXFOLDER}/unit/xlx.service /etc/systemd/system/xlx.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -L /etc/systemd/system/xlx.timer ]; then
|
||||||
|
ln -s ${XLXFOLDER}/unit/xlx.timer /etc/systemd/system/xlx.timer
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable xlx.timer &>/dev/null
|
||||||
|
systemctl start xlx.timer
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,52 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
systemctl disable xlx.timer xlx.service &>/dev/null
|
||||||
|
systemctl stop xlx.timer xlx.service &>/dev/null
|
||||||
|
|
||||||
|
if [ -L /etc/systemd/system/xlx.service ]; then
|
||||||
|
unlink /etc/systemd/system/xlx.service
|
||||||
|
fi
|
||||||
|
if [ -L /etc/systemd/system/xlx.timer ]; then
|
||||||
|
unlink /etc/systemd/system/xlx.timer
|
||||||
|
fi
|
||||||
|
|
||||||
|
systemctl daemon-reload
|
||||||
|
|
||||||
|
if [ -f /usr/local/sbin/pistar-daily.cron ]; then
|
||||||
|
sed -i "s/^\/usr\/local\/sbin\/HostFilesUpdate.sh.*/\/usr\/local\/sbin\/HostFilesUpdate.sh/" /usr/local/sbin/pistar-daily.cron
|
||||||
|
fi
|
||||||
|
|
||||||
|
find /usr/local/bin/ -type l -name "xlx-*" -delete
|
||||||
|
|
||||||
|
if [ -d /xlx ]; then
|
||||||
|
rm -rf /tmp
|
||||||
|
fi
|
||||||
|
|
||||||
|
wget -O /usr/local/etc/DMRIds.dat https://xlx.dmrykt.ru/pistar/DMRIds.dat
|
||||||
|
|
||||||
|
# Old files
|
||||||
|
if [ -f /etc/cron.d/xlx-cron ]; then
|
||||||
|
rm -rf /etc/cron.d/xlx-cron
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/xlx-del ]; then
|
||||||
|
rm -rf /usr/local/bin/xlx-del
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/xlx-getdmrid ]; then
|
||||||
|
rm -rf /usr/local/bin/xlx-getdmrid
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/xlx-gethost ]; then
|
||||||
|
rm -rf /usr/local/bin/xlx-gethost
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/bin/xlx-update ]; then
|
||||||
|
rm -rf /usr/local/bin/xlx-update
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/etc/DMRIdsYKT.dat ]; then
|
||||||
|
rm -rf /usr/local/etc/DMRIdsYKT.dat
|
||||||
|
fi
|
||||||
|
if [ -f /usr/local/etc/DMRIds.dat-export ]; then
|
||||||
|
rm -rf /usr/local/etc/DMRIds.dat-export
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
XLXFOLDER=/xlx
|
||||||
|
|
||||||
|
mkdir -p ${XLXFOLDER}/scripts
|
||||||
|
mkdir -p ${XLXFOLDER}/temp
|
||||||
|
mkdir -p ${XLXFOLDER}/data
|
||||||
|
mkdir -p ${XLXFOLDER}/unit
|
||||||
|
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-cron.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-getdmrid.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-gethost.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-update.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-del.sh
|
||||||
|
|
||||||
|
|
||||||
|
ln -s ${XLXFOLDER}/scripts/xlx-cron.sh /usr/local/bin/xlx-cron
|
||||||
|
ln -s ${XLXFOLDER}/scripts/xlx-getdmrid.sh /usr/local/bin/xlx-getdmrid
|
||||||
|
ln -s ${XLXFOLDER}/scripts/xlx-gethost.sh /usr/local/bin/xlx-gethost
|
||||||
|
ln -s ${XLXFOLDER}/scripts/xlx-update.sh /usr/local/bin/xlx-update
|
||||||
|
ln -s ${XLXFOLDER}/scripts/xlx-del.sh /usr/local/bin/xlx-del
|
||||||
|
|
||||||
|
chmod +x ${XLXFOLDER}/scripts/*.sh
|
||||||
|
|
||||||
|
wget -q -N -P ${XLXFOLDER}/unit/ https://xlx.dmrykt.ru/pistar/unit/xlx.service
|
||||||
|
wget -q -N -P ${XLXFOLDER}/unit/ https://xlx.dmrykt.ru/pistar/unit/xlx.timer
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
XLXFOLDER=/xlx
|
||||||
|
DMRIDSFILE=/usr/local/etc/DMRIds.dat
|
||||||
|
XLXFILETIMEOLD=0
|
||||||
|
DMRFILETIMEOLD=0
|
||||||
|
DMRTFileOld=0
|
||||||
|
XLXFILETIME=0
|
||||||
|
DMRFILETIME=0
|
||||||
|
DMRTFile=0
|
||||||
|
|
||||||
|
wget -q -N -P ${XLXFOLDER}/data/ https://xlx.dmrykt.ru/pistar/DMRIdsYKT.dat
|
||||||
|
wget -q -N -P ${XLXFOLDER}/data/ https://xlx.dmrykt.ru/pistar/DMRIds.dat
|
||||||
|
|
||||||
|
cp ${XLXFOLDER}/data/DMRIds.dat ${XLXFOLDER}/temp/DMRIds.dat
|
||||||
|
sed -i "/^103.*/d" ${XLXFOLDER}/temp/DMRIds.dat
|
||||||
|
cat ${XLXFOLDER}/temp/DMRIds.dat ${XLXFOLDER}/data/DMRIdsYKT.dat > ${DMRIDSFILE}
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,89 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
sed -i "/^114.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "114;89.111.154.99;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^391.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "391;212.3.149.253;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^780.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "780;46.138.248.163;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^YKT.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "YKT;89.111.154.99;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "YKT;89.111.154.99;4004" > /root/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^SMK.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "SMK;212.3.149.253;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "SMK;212.3.149.253;4004" > /root/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^ARK.*/d" /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "ARK;46.138.248.163;4004" >> /usr/local/etc/XLXHosts.txt
|
||||||
|
echo "ARK;46.138.248.163;4004" > /root/XLXHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^11400.*/d" /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "11400;RU-C4FM YKUTIA;@DMRYKT;89.111.154.99;42000;000" >> /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "11400;RU-C4FM YKUTIA;@DMRYKT;89.111.154.99;42000;000" > /root/YSFHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^39100.*/d" /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "39100;RU-C4FM SMOLENSK;@XLXSMK;212.3.149.253;42000;000" >> /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "39100;RU-C4FM SMOLENSK;@XLXSMK;212.3.149.253;42000;000" > /root/YSFHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^78000.*/d" /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "78000;XLX780;XLX ARK-MSK;46.138.248.163;42000;000" >> /usr/local/etc/YSFHosts.txt
|
||||||
|
echo "78000;XLX780;XLX ARK-MSK;46.138.248.163;42000;000" > /root/YSFHosts.txt
|
||||||
|
|
||||||
|
sed -i "/^XLX_114.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_114 0000 89.111.154.99 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_114 0000 89.111.154.99 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^XLX_391.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_391 0000 212.3.149.253 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_391 0000 212.3.149.253 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^XLX_780.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_780 0000 46.138.248.163 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_780 0000 46.138.248.163 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^XLX_YKT.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_YKT 0000 89.111.154.99 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_YKT 0000 89.111.154.99 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^XLX_SMK.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_SMK 0000 212.3.149.253 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_SMK 0000 212.3.149.253 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^ARK.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_ARK 0000 46.138.248.163 passw0rd 62030" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "XLX_ARK 0000 46.138.248.163 passw0rd 62030" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^114*/d" /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "11400 89.111.154.99 41000" >> /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "11400 89.111.154.99 41000" > /root/P25Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^391*/d" /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "39100 212.3.149.253 41000" >> /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "39100 212.3.149.253 41000" > /root/P25Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^780*/d" /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "78000 46.138.248.163 41000" >> /usr/local/etc/P25Hosts.txt
|
||||||
|
echo "78000 46.138.248.163 41000" > /root/P25Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^HB_YKT_YAKUTIA.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "HB_YKT_YAKUTIA_NETWORK 2001 89.111.154.99 passw0rd 62032" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "HB_YKT_YAKUTIA_NETWORK 2001 89.111.154.99 passw0rd 62032" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^BM_1114_.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "BM_1114_Russia_YKTDMR 2001 89.111.154.99 passw0rd 62032" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "BM_1114_Russia_YKTDMR 2001 89.111.154.99 passw0rd 62032" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
sed -i "/^DMR+_YAKUTIA.*/d" /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "DMR+_YAKUTIA-RUSSIA-A 362823 89.111.154.99 passw0rd 62032" >> /usr/local/etc/DMR_Hosts.txt
|
||||||
|
echo "DMR+_YAKUTIA-RUSSIA-A 362823 89.111.154.99 passw0rd 62032" > /root/DMR_Hosts.txt
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
mount -o remount,rw /
|
||||||
|
|
||||||
|
XLXFOLDER=/xlx
|
||||||
|
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-cron.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-del.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-getdmrid.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-gethost.sh
|
||||||
|
wget -q -N -P ${XLXFOLDER}/scripts/ https://xlx.dmrykt.ru/pistar/xlx-update.sh
|
||||||
|
|
||||||
|
chmod +x ${XLXFOLDER}/scripts/*.sh
|
||||||
|
|
||||||
|
wget -q -N -P ${XLXFOLDER}/unit/ https://xlx.dmrykt.ru/pistar/unit/xlx.service
|
||||||
|
wget -q -N -P ${XLXFOLDER}/unit/ https://xlx.dmrykt.ru/pistar/unit/xlx.timer
|
||||||
|
|
||||||
|
exit 0
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
|
||||||
|
wget -P /home/pi-star/ https://xlx.dmrykt.ru/pistar/xlx-del.sh &>/dev/null
|
||||||
|
wget -P /home/pi-star/ https://xlx.dmrykt.ru/pistar/xlx-get.sh &>/dev/null
|
||||||
|
|
||||||
|
chmod +x /home/pi-star/xlx-*.sh
|
||||||
|
|
||||||
|
/home/pi-star/xlx-del.sh
|
||||||
|
/home/pi-star/xlx-get.sh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
echo "Progress: 1/5"
|
||||||
|
xlx-cron
|
||||||
|
|
||||||
|
echo "Progress: 2/5"
|
||||||
|
xlx-gethost
|
||||||
|
|
||||||
|
echo "Progress: 3/5"
|
||||||
|
xlx-getdmrid
|
||||||
|
|
||||||
|
echo "Progress: 4/5"
|
||||||
|
xlx-update
|
||||||
|
|
||||||
|
echo "Progress: 5/5"
|
||||||
|
rm -rf /home/pi-star/xlx-*.sh
|
||||||
|
rm -rf /home/pi-star/xlx.sh
|
||||||
|
|
||||||
|
echo "-----<===== FINISH =====>-----"
|
||||||
|
|
||||||
|
exit 0
|
||||||
Ссылка в новой задаче
Block a user