area515 / Photonic3D

Control software for resin 3D printers
http://photonic3d.com
GNU General Public License v3.0
131 stars 115 forks source link

start.sh doesn't function properly w/o Internet #225

Closed jmkao closed 8 years ago

jmkao commented 8 years ago

The update checking populates NETWORK_TAG from a wget to github. If this fails, NETWORK_TAG is null.

This makes the update logic think that the distribution requires updating due to the logic in:

elif [ "${NETWORK_TAG}" != "${LOCAL_TAG}" -o "$2" == "force" ]; then

Which also fails (since there is no Internet) and causes the script to abort w/o starting the server.

On slower RPIs, this may cause the server to not start most of the time, since the $all dependency only means that the network interfaces and daemons are started, not necessarily fully initialized. In particular, dhcpcd is started, but may not have acquired an IP address.

Need to add additional logic that if the population of NETWORK_TAG fails, server should still start based on what already exists in /opt/cwh.