g3support fixes

pull/1/head
Tom Early 6 years ago
parent c67a9b2da7
commit c76bd04783

@ -37,36 +37,28 @@ InstallReflector () {
cd src cd src
if [[ "$callsign" == XLX* ]]; then if [[ "$callsign" == XLX* ]]; then
if [ ! -e xlxd.whitelist ]; then if [ ! -e xlxd.whitelist ]; then
echo "Making default whitelist"
cp ../config/xlxd.whitelist . cp ../config/xlxd.whitelist .
fi fi
if [ ! -e xlxd.blacklist ]; then if [ ! -e xlxd.blacklist ]; then
echo "Making default blacklist"
cp ../config/xlxd.blacklist . cp ../config/xlxd.blacklist .
fi fi
if [ ! -e xlxd.interlink ]; then if [ ! -e xlxd.interlink ]; then
echo "Making default interlink"
cp ../config/xlxd.whitelist . cp ../config/xlxd.whitelist .
fi fi
if [[ ${g3support:-$g3support_d} == true ]] && [ ! -e xlxd.terminal ]; then if [[ "$g3support" == true ]] && [ ! -e xlxd.terminal ]; then
echo "Making default g3 terminal"
cp ../config/xlxd.terminal . cp ../config/xlxd.terminal .
fi fi
else else
if [ ! -e xrfd.whitelist ]; then if [ ! -e xrfd.whitelist ]; then
echo "Making default whitelist"
cp ../config/xlxd.whitelist xrfd.whitelist cp ../config/xlxd.whitelist xrfd.whitelist
fi fi
if [ ! -e xrfd.blacklist ]; then if [ ! -e xrfd.blacklist ]; then
echo "Making default blacklist"
cp ../config/xlxd.blacklist xrfd.blacklist cp ../config/xlxd.blacklist xrfd.blacklist
fi fi
if [ ! -e xrfd.interlink ]; then if [ ! -e xrfd.interlink ]; then
echo "Making default interlink"
cp ../config/xlxd.whitelist xrfd.interlink cp ../config/xlxd.whitelist xrfd.interlink
fi fi
if [[ ${g3support:-$g3support_d} == true ]] && [ ! -e xrfd.terminal ]; then if [[ "$g3support" == true ]] && [ ! -e xrfd.terminal ]; then
echo "Making default g3 terminal"
cp ../config/xlxd.terminal xrfd.terminal cp ../config/xlxd.terminal xrfd.terminal
fi fi
fi fi
@ -98,20 +90,20 @@ Compile () {
# Execution starts here! # Execution starts here!
# file locations # service file locations
xlxserv='/etc/systemd/system/xlxd.service' xlxserv='/etc/systemd/system/xlxd.service'
xrfserv='/etc/systemd/system/xrfd.service' xrfserv='/etc/systemd/system/xrfd.service'
ambserv='/etc/systemd/system/ambed.service' ambserv='/etc/systemd/system/ambed.service'
# default values # default values, we only need a few
callsign='CHNGME' #callsign='CHNGME'
nummod=26 #nummod=26
ip4addr='none' #ip4addr='none'
ip6addr='none' #ip6addr='none'
tcaddress='none' tcaddress='none'
tcmodules='ABCDEFGHIJKLMNOPQRSTUVWXYZ' #tcmodules='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
g3support=true g3support=false
dbsupport=false #dbsupport=false
if [ -e reflector.cfg ]; then if [ -e reflector.cfg ]; then
source reflector.cfg source reflector.cfg

Loading…
Cancel
Save

Powered by TurnKey Linux.