#!/bin/bash
# script updated May-27-2026 on http://f6bvp.org
# Copy this script file in /usr/local/src/ax25/updtools.sh
# cd into /usr/local/src/ax25
# execute command : sudo chmod a+x updtools.sh
# execute command to run the script : sudo ./updtools.sh
# It will download the latest updtools scripts from f6bvp.org
# and run the main installer
#
if [ "$(id -u)" != "0" ]; then
    echo "You need to be root to execute this script"
    exit 1
fi

SRCDIR=/usr/local/src/ax25

mkdir -p $SRCDIR
cd $SRCDIR

# Remove existing updtools scripts
/bin/rm -f ./updtools.sh
/bin/rm -f ./updtools

# Download latest updtools scripts from f6bvp.org
wget -q http://f6bvp.org/updtools.sh
wget -q http://f6bvp.org/updtools

# Make them executable
chmod 775 updtools.sh updtools

# Run the main installer
exec ./updtools
#
