update rc.local files for Venus and Cerbo; create new folders to manage Venus and Cerbo release;update release script and document
This commit is contained in:
parent
a5bec1bbaa
commit
c2aad6783b
|
@ -1,28 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
mount -o remount,rw /
|
||||
|
||||
# Source directory
|
||||
source_dir="/data/dbus-fzsonick-48tl"
|
||||
|
||||
# Destination directory
|
||||
destination_dir_upper="/opt/victronenergy/"
|
||||
destination_dir="/opt/victronenergy/dbus-fzsonick-48tl/"
|
||||
|
||||
# Check if the destination directory exists
|
||||
if [ -d "$destination_dir" ]; then
|
||||
# Remove the destination directory
|
||||
rm -r "$destination_dir"
|
||||
fi
|
||||
|
||||
# Copy the contents of the source directory to the destination directory
|
||||
cp -r "$source_dir" "$destination_dir_upper"
|
||||
|
||||
# Set MPPT network mode to 0
|
||||
sed -i "s|('/Link/NetworkMode', [^)]*)|('/Link/NetworkMode', 0)|g" /opt/victronenergy/dbus-systemcalc-py/delegates/dvcc.py
|
||||
|
||||
find /data/innovenergy/openvpn -type f -exec chmod 777 {} \;
|
||||
|
||||
/data/innovenergy/openvpn/service/run
|
||||
|
||||
exit 0
|
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue