2015-11-16, 19:13
Hi,
I am hoping someone a lot smarter then me can provide me some guidance. I am running Openelec 6 on an intel NUC, that connects to my NAS, via ethernet, shared via SMB using Openelecs built in smb sharing.
For the longest time this has worked perfectly fine but I just had my internet upgraded to a faster speed which included a new router/modem. Since the new router install, it seems openelec starts faster then the network is ready and I get a timed out error when trying to acces my shared drives.
I had an issue back when I was running Openelec 5 where the SMB in openelec stopped working and I used the add network location, instead of the browse smb option and used my NAS login info. This fixed that issue back then, but when I tried it this time, the error still happened which leads me to believe that the network connection is taking longer and Openelec gives up waiting for it. Another thing I have noticed is that there are times that Openelec wil connect normally with the NAS after running for a few minutes. Also, If I reboot the NAS, Openelec wil see the drives on first boot without issue, but the next boot I get the timed out error.
I am going to try using the delay Kodi until network is discovered option when I get home later today, but I have read in multiple places while I was researching this issue that this does not always work and that I should use an autostart.sh script (I have posted the info I found below)
I tried the wait for network option in the openelec settings, but it did not seem to work for me.
Only when I added autostart.sh
#!/bin/sh
# Wait for network to come online....
# The option in OpenELEC to wait for network doesn't work yet.
while true ; do
if ifconfig eth0 | grep -q "inet addr:" ; then
echo "Network is up!"
break
else
sleep 1
fi
done
I have googled autostart.sh and I have yet to find any clear info on how to create etc this script so I was hoping someone could simply explain the following if its not to much trouble.
1) Where would I find this script in OpenElec( I can access openelec via my mac over the network and I have succsesfully added a keymap for my harmony remote so I am comfortable doing this)
2)If there is no autostart.sh script by default in OpeneElec, where would I save this script after creating it.
3)If I have to create this script how and with what program would I do this on a mac. Would I just copy and paste the one I noted above into the script, or do i need to make one specific for my situation?
4) If there is an autostart.sh script, how would i modify it to add the above.
Any help anyone could give me with this would be amazing and greatly appreciated. Or, if someone has any other ideas I would love to hear them.
Many thanks
I am hoping someone a lot smarter then me can provide me some guidance. I am running Openelec 6 on an intel NUC, that connects to my NAS, via ethernet, shared via SMB using Openelecs built in smb sharing.
For the longest time this has worked perfectly fine but I just had my internet upgraded to a faster speed which included a new router/modem. Since the new router install, it seems openelec starts faster then the network is ready and I get a timed out error when trying to acces my shared drives.
I had an issue back when I was running Openelec 5 where the SMB in openelec stopped working and I used the add network location, instead of the browse smb option and used my NAS login info. This fixed that issue back then, but when I tried it this time, the error still happened which leads me to believe that the network connection is taking longer and Openelec gives up waiting for it. Another thing I have noticed is that there are times that Openelec wil connect normally with the NAS after running for a few minutes. Also, If I reboot the NAS, Openelec wil see the drives on first boot without issue, but the next boot I get the timed out error.
I am going to try using the delay Kodi until network is discovered option when I get home later today, but I have read in multiple places while I was researching this issue that this does not always work and that I should use an autostart.sh script (I have posted the info I found below)
I tried the wait for network option in the openelec settings, but it did not seem to work for me.
Only when I added autostart.sh
#!/bin/sh
# Wait for network to come online....
# The option in OpenELEC to wait for network doesn't work yet.
while true ; do
if ifconfig eth0 | grep -q "inet addr:" ; then
echo "Network is up!"
break
else
sleep 1
fi
done
I have googled autostart.sh and I have yet to find any clear info on how to create etc this script so I was hoping someone could simply explain the following if its not to much trouble.
1) Where would I find this script in OpenElec( I can access openelec via my mac over the network and I have succsesfully added a keymap for my harmony remote so I am comfortable doing this)
2)If there is no autostart.sh script by default in OpeneElec, where would I save this script after creating it.
3)If I have to create this script how and with what program would I do this on a mac. Would I just copy and paste the one I noted above into the script, or do i need to make one specific for my situation?
4) If there is an autostart.sh script, how would i modify it to add the above.
Any help anyone could give me with this would be amazing and greatly appreciated. Or, if someone has any other ideas I would love to hear them.
Many thanks