mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
more dep fixes
This commit is contained in:
+48
-15
@@ -66,8 +66,6 @@ rc=$?
|
||||
|
||||
function dep_check() {
|
||||
|
||||
USERDIR=$HOM
|
||||
|
||||
|
||||
if ! hash jq 2>/dev/null; then
|
||||
sudo apt install -y jq
|
||||
@@ -83,36 +81,70 @@ if ! hash pat 2>/dev/null; then
|
||||
https://getpat.io" | yad --center --text-info --wrap --image=$DIR/images/corps-icon.png --show-uri --button="Exit:1" --title "Install PAT" ${r} ${c} || exit 1
|
||||
fi
|
||||
|
||||
if ! hash getardoplist 2>/dev/null; then
|
||||
wget -P /tmp/ -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
|
||||
ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
|
||||
{ echo "Failed to download getardop script"; }
|
||||
|
||||
chmod +x /tmp/getardoplist && sudo mv /tmp/getardoplist /usr/local/bin/ ||
|
||||
{ echo "Failed to add getardoplist to /usr/local/bin"; }
|
||||
}
|
||||
|
||||
|
||||
function getardoptools_install() {
|
||||
# Get Grid Square Map
|
||||
|
||||
|
||||
if ! hash evince; then
|
||||
sudo apt-get install -y evince
|
||||
fi
|
||||
cp $HOME/setup-scripts/Files/2013_GridSquareMap.pdf $HOME/Documents/grid-map.pdf ||
|
||||
{ ERRCODE="Failed to copy grid-map.pdf to Documents folder for findardop / findvara"; errors; return; }
|
||||
# Get ardop list script
|
||||
|
||||
if ! hash getardoplist; then
|
||||
wget -P $HOME -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
|
||||
ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
|
||||
{ ERRCODE="Failed to download getardoplist script"; errors; return; }
|
||||
|
||||
chmod +x $HOME/getardoplist && sudo mv $HOME/getardoplist /usr/local/bin/ ||
|
||||
{ ERRCODE="Failed to add getardoplist to /usr/local/bin"; errors; return; }
|
||||
|
||||
fi
|
||||
# Get find ardop script
|
||||
if ! hash findardop; then
|
||||
wget -P $HOME -N https://gist.githubusercontent.com/km4ack/7af44d08d95215d\
|
||||
a45be3e69decf6def/raw/1aeff0d78f85e86b868a4ba83ebce99e90532f48/findardop ||
|
||||
{ ERRCODE="Failed to download findardop script"; errors; return; }
|
||||
|
||||
chmod +x $HOME/findardop && sudo mv $HOME/findardop /usr/local/bin/ ||
|
||||
{ ERRCODE="Failed to add findardop to /usr/local/bin"; errors; return; }
|
||||
|
||||
fi
|
||||
|
||||
if ! hash getvaralist; then
|
||||
wget -P /tmp/ -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
|
||||
wget -P $HOME -N https://gist.githubusercontent.com/km4ack/2b5db90724cab67\
|
||||
ed50cbf48ed223efd/raw/efe402285290b46c700d9d29e285c0686b79314f/getardoplist ||
|
||||
{ ERRCODE="Failed to download getardoplist script"; errors; return; }
|
||||
|
||||
sed 's/ardop/vara/g' /tmp/getardoplist >> /tmp/getvaralist ||
|
||||
sed 's/ardop/vara/g' $HOME/getardoplist >> $HOME/getvaralist ||
|
||||
{ ERRCODE="Failed to clone and modify getardop to gitvara"; errors; return; }
|
||||
|
||||
chmod +x /tmp/getvaralist && sudo mv /tmp/getvaralist /usr/local/bin/ ||
|
||||
chmod +x $HOME/getvaralist && sudo mv $HOME/getvaralist /usr/local/bin/ ||
|
||||
{ ERRCODE="Failed to add getvaralist to /usr/local/bin"; errors; return; }
|
||||
fi
|
||||
# Get find ardop script
|
||||
if ! hash findvara; then
|
||||
wget -P $HOME -N https://gist.githubusercontent.com/km4ack/7af44d08d95215d\
|
||||
a45be3e69decf6def/raw/1aeff0d78f85e86b868a4ba83ebce99e90532f48/findardop ||
|
||||
{ ERRCODE="Failed to download findardop script"; errors; return; }
|
||||
|
||||
sed 's/ardop/vara/g' $HOME/findardop >> $HOME/findvara ||
|
||||
{ ERRCODE="Failed to clone and modify getardop to gitvara"; errors; return; }
|
||||
|
||||
chmod +x $HOME/findvara && sudo mv $HOME/findvara /usr/local/bin/ ||
|
||||
{ ERRCODE="Failed to add findvara to /usr/local/bin"; errors; return; }
|
||||
|
||||
if [[ ! -f $HOME/Documents/grid-map.pdf ]]; then
|
||||
#wget -O $HOME/Documents/grid-map.pdf http://www.icomamerica.com/en/amateur/amateurtools/2013_GridSquareMap.pdf
|
||||
cp $HOME/setup-scripts/Files/2013_GridSquareMap.pdf $HOME/Documents/grid-map.pdf ||
|
||||
{ echo "Failed to copy grid square map to Documents folder"; }
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
#Lets grab the AmRRON Banner.
|
||||
#wget -N http://s9756.storage.proboards.com/5619756/a/KWTGc2YscxSclVEeB5jD.png -O /tmp/banner.png
|
||||
|
||||
@@ -459,4 +491,5 @@ fi
|
||||
set_screen_size
|
||||
check_repo_version
|
||||
dep_check
|
||||
getardoptools_install
|
||||
skip_setup
|
||||
|
||||
Reference in New Issue
Block a user