Re: Error, DVSwitch.ini file not found.. But it's right there?!


sigmazgfx@...
 

ok:
#!/bin/bash
 
#################################################################
# /*
#  * Copyright (C) 2019 N4IRR
#  *
#  * Permission to use, copy, modify, and/or distribute this software for any
#  * purpose with or without fee is hereby granted, provided that the above
#  * copyright notice and this permission notice appear in all copies.
#  *
#  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
#  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
#  * AND FITNESS.  IN NO EVENT SHALL N4IRR BE LIABLE FOR ANY SPECIAL, DIRECT,
#  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
#  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
#  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
#  * PERFORMANCE OF THIS SOFTWARE.
#  */
#################################################################
 
#DEBUG=echo
set -xv   # this line will enable debug
 
SCRIPT_VERSION="dvswitch.sh 1.5.8"
 
AB_DIR=${AB_DIR:-"/var/lib/dvswitch"}
MMDVM_DIR=${MMDVM_DIR:-"/var/lib/mmdvm"}
DVSWITCH_INI=${DVSWITCH_INI:-"/opt/MMDVM_Bridge/DVSwitch.ini"}
#DVSWITCH_INI=${DVSWITCH_INI:-"/usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge/DVSwitch.ini"}
MMDVM_INI=${MMDVM_INI:-"/opt/MMDVM_Bridge/MMDVM_Bridge.ini"}
NODE_DIR=${NODE_DIR:-"/tmp"}


ENV
[root@AllstarNode MMDVM_Bridge]# env
XDG_SESSION_ID=437
D=/usr/bin/dialog --clear
SHUTDOWN_MONITOR=disabled
SHELL=/bin/bash
TERM=xterm
SSH_CLIENT=192.168.1.23 53621 222
SSH_TTY=/dev/pts/0
USER=root
START_DELAY=0
VPN_NETWORK=disabled
HWTYPE=RPi2
SON=/usr/bin/setterm --term linux --background blue --foreground white --clear all --cursor on
PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl
MAIL=/var/spool/mail/root
PWD=/opt/MMDVM_Bridge
EDITOR=/usr/bin/nano
LANG=C
PRIVATE_NODE=0
HOME=/root
SHLVL=3
FIREWALL=disabled
WATCHDOG=enabled
LOGNAME=root
ADMINSH=RUNNING
SAY_IP_AT_BOOT=enabled
SSH_CONNECTION=192.168.1.23 53621 192.168.1.71 222
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus
SOFF=/usr/bin/setterm --term linux --background blue --foreground white --clear all --cursor off
XDG_RUNTIME_DIR=/run/user/0
NODE1=48353
OLDPWD=/usr/local/dvswitch-2019-03-16/opt/MMDVM_Bridge
_=/usr/bin/env
 

Join main@DVSwitch.groups.io to automatically receive all group messages.