Code: Select all
VERS=`cd /opt/z-way-server; LD_LIBRARY_PATH=./libs ./z-way-server -h 2>/dev/null | head -n 1 | cut -d' ' -f3`
echo current version: $VERS
Code: Select all
VERS=`cd /opt/z-way-server; LD_LIBRARY_PATH=./libs ./z-way-server -h 2>/dev/null | head -n 1 | cut -d' ' -f3`
echo current version: $VERS
Code: Select all
PKG=z-way-3.2.3_armhf.deb
wget -O /tmp/$PKG https://storage.z-wave.me/z-way-server/$PKG
sudo dpkg -i /tmp/$PKG