Added check to see if netclient is present or not.

This commit is contained in:
Caleb Gasser 2022-06-22 11:11:06 -05:00
parent d47b6c0fc7
commit 70798739de

View file

@ -215,8 +215,12 @@ if [ "${KEY}" != "nokey" ]; then
fi
if [ "${OS}" = "FreeBSD" ]; then
echo "Moving netclient executable to \"/usr/sbin/netclient\""
mv netclient /usr/sbin
if ! [ -f /usr/sbin/netclient ]; then
echo "Moving netclient executable to \"/usr/sbin/netclient\""
mv netclient /usr/sbin
else
echo "Netclient already present."
fi
fi
if [ "${OS}" = "OpenWRT" ]; then