Good day, was wondering if there was any plans on updating EmonCMS as the version here is missing features Home Assistant Expects in order to work properly, appreciate the hard work!
what I did was
make a stopping_svcs script with the line:
sh /etc/rc.d/rc.mysqld stop
needs the 'sh' because for some reason when installed rc.mysqld is not set with execute permission and this is a simple way around that.
So to get my stopping_svcs(and any other scripts I made) into the right folder I added the following lines to go script(/boot/config/go or from smb share /flash/config/go)
#Copy my scripts and set permissions
mkdir -p /usr/local/emhttp/plugins/myscript/event/
cp /boot/myscript/* /usr/local/emhttp/plugins/myscript/event/*
chmod +x /usr/local/emhttp/plugins/myscript/event/*
as im sure it will be useful to others I also made a 'started' script(which gets copied at same time with above commands) with the following lines to install mysql once the array is started
#install mysqld
sh /boot/packages/mysql-5.0.67-i486-1.tgz.manual_install
if mysqld is already installed then the above script will only restart it(which is what we want)
mysql must be installed from unMenu the first time so that all the variables in the install script are correct