My contribution is to correct the script :
there is a mistake etcs/ instead of etc/ :
if grep -q "eth4_mtu" /etc/synoinfo.conf; then
sed -i '/eth4_mtu/d' /etcs/synoinfo.conf
fi
into
if grep -q "eth4_mtu" /etc/synoinfo.conf; then
sed -i '/eth4_mtu/d' /etc/synoinfo.conf
fi
it works when i change :
root@nas-1:~# sed -i 's/upnpmodelname="DS1515+"/upnpmodelname="DS1517+"/g' /etc.defaults/synoinfo.conf
root@nas-1:~# sed -i 's/upnpmodelname="DS1515+"/upnpmodelname="DS1517+"/g' /etc/synoinfo.conf
(in addition with unique="synology_avoton_1517+")
After the reboot i have this :
the 1515+ doesn't accept the synology_avoton_1517 in etc.defaults/synoinfo.conf
i dont understand why the modification in etc.defauts/synoinfo.conf is NOT persistant after the reboot and why he want to reinstall.