mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
connect RTL with LIT or LOOP
This commit is contained in:
parent
41c7a61d3d
commit
55779a400a
@ -332,6 +332,9 @@ alias lit-frcli=\"frcli --rpcserver=localhost:8443 \
|
||||
/home/admin/config.scripts/internet.hiddenservice.sh lit 443 8443
|
||||
fi
|
||||
|
||||
# in case RTL is installed - check to connect
|
||||
sudo /home/admin/config.scripts/bonus.rtl.sh connect-services
|
||||
|
||||
source /home/admin/raspiblitz.info
|
||||
if [ "${state}" == "ready" ]; then
|
||||
echo "# OK - the litd.service is enabled, system is ready so starting service"
|
||||
@ -340,12 +343,6 @@ alias lit-frcli=\"frcli --rpcserver=localhost:8443 \
|
||||
echo "# OK - the litd.service is enabled, to start manually use: 'sudo systemctl start litd'"
|
||||
fi
|
||||
|
||||
# make Loop work with RTL if installed
|
||||
# dont call anything that starts RTL service - otherwise update/recover might block
|
||||
if [ ${#rtlWebinterface} -gt 0 ]&&[ ${rtlWebinterface} = on ];then
|
||||
/home/admin/config.scripts/bonus.rtl.sh config
|
||||
fi
|
||||
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
@ -136,6 +136,9 @@ WantedBy=multi-user.target
|
||||
echo "# The Loop service already installed."
|
||||
fi
|
||||
|
||||
# in case RTL is installed - check to connect
|
||||
sudo /home/admin/config.scripts/bonus.rtl.sh connect-services
|
||||
|
||||
# setting value in raspi blitz config
|
||||
sudo sed -i "s/^loop=.*/loop=on/g" /mnt/hdd/raspiblitz.conf
|
||||
|
||||
|
@ -274,12 +274,19 @@ fi
|
||||
|
||||
if [ "$1" = "connect-services" ]; then
|
||||
|
||||
# has to run as use root or sudo
|
||||
if [ "$USER" != "root" ] && [ "$USER" != "admin" ]; then
|
||||
echo "# FAIL: run as user root or admin"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "## RTL CONNECT-SERVICES (when run as admin or root)"
|
||||
# only run when RTL is installed
|
||||
if [ -d /home/rtl ]; then
|
||||
echo "## RTL CONNECT-SERVICES"
|
||||
else
|
||||
echo "# no RTL installed - no need to connect any services"
|
||||
exit
|
||||
fi
|
||||
|
||||
# LIT & LOOP Swap Server
|
||||
echo "# checking of swap server ..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user