mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 22:55:06 +03:00
1. added multipath protocol and schema suport
2. added SCTP protocol and schema support 3. added set of NAS models support (Asustor, ReadyNAS, Drobo, QNAP, WD, Synology, Terramaster) 4. moved to fc00::/7 private segment 5. added Windows, MacOS and Linux UI for peers edit and current status
This commit is contained in:
parent
cfa293d189
commit
d8a4000141
198 changed files with 8589 additions and 697 deletions
34
contrib/ui/nas-westerndigital/package/mesh/init.sh
Executable file
34
contrib/ui/nas-westerndigital/package/mesh/init.sh
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
install_path="$1"
|
||||
config_file=$install_path/mesh.conf
|
||||
backup_config_file=/var/backups/mesh.conf
|
||||
|
||||
MESH_PACKAGE_LOG=/var/log/mesh.log
|
||||
echo "init.sh called" >> "$MESH_PACKAGE_LOG"
|
||||
|
||||
exec 2>>/var/log/mesh.log
|
||||
set -x
|
||||
|
||||
mkdir -p /var/www/mesh
|
||||
|
||||
# Binaries
|
||||
ln -s "$install_path/bin/mesh" /usr/bin
|
||||
ln -s "$install_path/bin/meshctl" /usr/bin
|
||||
|
||||
# Web, probably, the app wil serve it by embedded server
|
||||
ln -s "$install_path/www/mesh.png" /var/www/mesh
|
||||
ln -s "$install_path/www/index.html" /var/www/mesh
|
||||
|
||||
if [ -f $backup_config_file ]; then
|
||||
echo "Backing up configuration file to /var/backups/mesh.conf"
|
||||
echo "Normalising and updating /etc/mesh.conf"
|
||||
mesh -useconf -normaliseconf < $backup_config_file > $config_file
|
||||
else
|
||||
echo "Generating initial configuration file $config_file"
|
||||
echo "Please familiarise yourself with this file before starting RiV-mesh"
|
||||
sh -c "umask 0027 && mesh -genconf > '$config_file'"
|
||||
mkdir -p /var/backups
|
||||
fi
|
||||
|
||||
cp $config_file $backup_config_file
|
Loading…
Add table
Add a link
Reference in a new issue