Explorar o código

Added check to see if netclient is present or not.

Caleb Gasser %!s(int64=3) %!d(string=hai) anos
pai
achega
2160ae7070
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      scripts/netclient-install.sh

+ 6 - 2
scripts/netclient-install.sh

@@ -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