#!/bin/sh
#
# Move without clobber, and delete if file wasn't moved.
# Create links.
# Remove script at the end.
#
mv -n /home/GUI/libscanreco.so.1.0.0 /usr/lib
mv -n /home/GUI/hostapd.conf /home
rm -f /home/GUI/hostapd.conf
rm -f /home/GUI/libscanreco.so.1.0.0
ln -s /usr/lib/libscanreco.so.1.0.0 /usr/lib/libscanreco.so
ln -s /usr/lib/libscanreco.so.1.0.0 /usr/lib/libscanreco.so.1
ln -s /usr/lib/libscanreco.so.1.0.0 /usr/lib/libscanreco.so.1.0
rm /home/GUI/start_scripts.sh

# Execute main application when finished
/home/GUI/scanreco_main
