radmin tweeks

pull/1/head
Tom Early 3 years ago
parent 41200bf293
commit 908460b977

@ -50,7 +50,7 @@ InstallReflector () {
if [ ! -e urfd.interlink ]; then if [ ! -e urfd.interlink ]; then
cp ../config/urfd.interlink . cp ../config/urfd.interlink .
fi fi
if [[ "$g3support" == true ]] && [ ! -e urfd.terminal ]; then if [ ! -e urfd.terminal ]; then
cp ../config/urfd.terminal . cp ../config/urfd.terminal .
fi fi
sudo make install || read -p "<Enter> to continue: " ans sudo make install || read -p "<Enter> to continue: " ans
@ -87,12 +87,18 @@ tcdserv='/etc/systemd/system/tcd.service'
# default values, we only need a few # default values, we only need a few
tcaddress='none' tcaddress='none'
g3support=false
if [ -e reflector.cfg ]; then if [[ $# -eq 1 ]]; then
source reflector.cfg if [ -e $1 ]; then
echo $1 found
callsign=$(awk '$1 == "Callsign"{print $3}' $1)
tcaddress=$(awk '$1 == "Transcoder"{print $3}' $1)
else else
echo 'No configuration file found...' echo "$1 not found"
exit 1
fi
else
echo "Usage: ./radmin inifilename"
exit 1 exit 1
fi fi
key='x' key='x'
@ -104,10 +110,10 @@ do
if [ "$pcount" -gt 1 ]; then if [ "$pcount" -gt 1 ]; then
echo echo
ps -aux | head -1 ps -aux | head -1
ps -aux | grep -e urfd -e tcd | grep -v grep ps -aux | grep -e urfd -e tcd | grep -v grep | grep -v radmin
fi fi
echo echo
echo " Reflector Administration, Version #211204" echo " Reflector Administration, Version #230221"
echo echo
git status | head -1 git status | head -1
echo echo

Loading…
Cancel
Save

Powered by TurnKey Linux.