Innovenergy_trunk/make_deploy/rc.local

24 lines
686 B
Bash
Executable File

#!/bin/sh -x
#Might not need this script anymore!
exec >/data/logfile.txt 2>&1
#set -e
#enable rw filesystem
/data/scripts/rw_root
/data/scripts/resize_root_fs
mkdir -p /opt/innovenergy/scripts
rsync -ar --relative /data/deploy/./ /
cp -rf /data/scripts/* /opt/innovenergy/scripts
cp /data/.bashrc ~
#cd /data/deploy && rm -rf *
#cd .. && rmdir deploy
/data/scripts/ro_root
ln -sf /opt/innovenergy/openvpn/service /service/openvpn
ln -sf /opt/innovenergy/EmuMeter/service /service/EmuMeter
ln -sf /opt/innovenergy/CsController/service /service/CsController
ln -sf /opt/innovenergy/dbus-fzsonick-48tl/service /service/Controller
echo "Done --- No errors encountered" >> logfile.txt