Commit 7a65f77d authored by Joanne Hugé's avatar Joanne Hugé

Remove dependency to get-sdr-info script

parent c86a1fa0
...@@ -5,8 +5,9 @@ set -x ...@@ -5,8 +5,9 @@ set -x
usage() { usage() {
cat << ENDUSAGE cat << ENDUSAGE
Usage: $0 [-h] 2021_AMARISOFT_TAR_PATH AMARISOFT_TAR_PATH Usage: $0 [-h] 2021_AMARISOFT_TAR_PATH AMARISOFT_TAR_PATH BAND
-h Show help -h Show help
BAND B28, B38, B39, B42, B43, N77, N78 or N79
ENDUSAGE ENDUSAGE
1>&2 1>&2
} }
...@@ -24,12 +25,12 @@ while getopts "h" opt; do ...@@ -24,12 +25,12 @@ while getopts "h" opt; do
done done
shift $((OPTIND-1)) shift $((OPTIND-1))
if [ "$#" -ne 2 ]; then if [ "$#" -ne 3 ]; then
usage; exit usage; exit
fi fi
ORS_NUMBER="$(hostname|sed 's/ors\([0-9]*\)/\1/g')" ORS_NUMBER="$(hostname|sed 's/ors\([0-9]*\)/\1/g')"
BAND="$(/opt/amarisoft/get-sdr-info -b)" BAND="$3"
OLD_AMARISOFT_TAR="$(realpath $1)" OLD_AMARISOFT_TAR="$(realpath $1)"
AMARISOFT_TAR="$(realpath $2)" AMARISOFT_TAR="$(realpath $2)"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment