Sorry for that. I own a NUC.
Im going to disconnect the CEC adapter and restart LE afterwards in order to see if the language changes and if we may have a problem with german characters like ä,ö,ü.
Sorry for that. I own a NUC.
Im going to disconnect the CEC adapter and restart LE afterwards in order to see if the language changes and if we may have a problem with german characters like ä,ö,ü.
I do have similar problems here. I can not open the System settings or Video, Music and so on. The only things that are working right now are TV, Addons and the LibreElec configuration if i remember correctly. The other one´s are just not opening.
So i guess i cannot change the theme im using or neither the language, because i can not open the menu for it.
Is there a fix coming for this?
I have just tried it in my NUC with LE7, is it supposed to work anyway?
It crashes Kodi after i try to run it, Kodi restarts and nothing Fürther happens.
Is it my fault?
So as far as i have read now, there is already a plugin for SkyGo in the making which is actual working. We need Kodi 17 for it, so i will be patient for a few more months.
@Borromini:
Do you know if this is also true for SkyGo in Germany?
It works perfect so far!
Ok got it. I filled the shutdown_with_net.sh with the content of the fuckme.sh and now it powers off everything as it should.
Big thanks vpeter!!
Is this permanent then? If so a hint in the Wiki would be nice, that if someone is running in the same direction and needs network from within the shutdown.sh is not getting into the same trouble as i did, don´t you think?
Sorry but i have to disappoint you. I have tried it and reactivated my shutdown. sh with the following content:
case "$1" in
halt)
# your commands here
;;
poweroff)
*
/storage/.config/fuckme.sh
#/usr/bin/ssh -i /storage/.ssh/id_rsa 192.168.178.43 /sbin/poweroff
;;
reboot)
# your commands here
;;
*)
# your commands here
;;
esac
Display More
It´s not working with your script, cause it´s not shutting down the NAS. When i insert this line it does shut down the NAS, but LE won´t poweroff completely:
Going with the command directly and without the fuckme.sh doesn´t help me either.
So i guess we are on the right path.
Here are some pics from the TV:
tmp_1763-img_20160427_175047-318025923.jpg
tmp_1763-img_20160427_175055141486835.jpg
Edit:
I have changed the following line from your example as well:
With this change he won´t even shutdown the NAS and LE.
So just for the records, we had a meeting in the IRC channel and maybe the solution is here:
linux - RHEL 7 how run longtime script before shutdown/reboot systemd - Unix & Linux Stack Exchange
Hi David1977,
i have tested it again with the recent Beta. So far no change in that.
I will be patient, thanks!
Hello people,
according to this thread (LibreELEC) David1977 recommended me to file this bug report in order to develop a fix for the following issue, in short words:
The shutdown.sh is running after network is done, which lets LE freeze at shutdown when a script or a command in the shutdown.sh needs the network connection.
So it is in my case in order to shut my NAS down at the same time LE powers off. Which is quite handy for me.
So hopefully someone can find the issue, which is probably solveable when we can fix the point in the systemD thing which causes the problem.
Ok so i hope i could make this clear and im looking forward to solve this.
edit:
The only thing i could find is that the problem already seemed to appeared some time ago (systemd does not wait for /storage/.config/shutdown.sh · Issue #3111 · OpenELEC/OpenELEC.tv · GitHub).
There are a lot of services btw. on LibreElec JLjd4GV8
Thats my guess too. I have put the command into the shutdown.sh directly, and had aneye on the auth.log when shutting down. There is no ssh connection attempt. So i think the shutdown.sh is executed too late from systemD or it´s misconfigured.
I had some troubles with that before at work in a completely different situation. Does anyone know where the script is being executed from systemD?
Sure.
# cat /storage/.config/shutdown.sh
case "$1" in
halt)
# your commands here
;;
poweroff)
/storage/.config/fuckme.sh
;;
reboot)
# your commands here
;;
*)
# your commands here
;;
esac
Display More
# cat /storage/.config/fuckme.sh
#!/bin/sh
/usr/bin/ssh -i /storage/.ssh/id_rsa 192.168.178.43 /sbin/poweroff
This script works perfectly when i ran it from the shell.
Well that is not the solution to this. I have added the -i /storage/.ssh/id_rsa and the /usr/bin/ssh and changed from bash to sh. Also i have updated LE to 6.9.05, same results. Last message i see is "Reached target shutdown" and that won´t dissappear.
I habe already changed it to the full path, i knew that i shoildnt do it.
I will add the key file and see what happens.
So im trying right now.
This
actually shuts down the NAS correctly.
Inserting just your test script to the fuckme.sh results in nothing. No test.txt is created.
Using your script as shutdown.sh and giving out the command with set -x leads me to a test.txt with just "poweroff" in it.
Beside´s i have removed the star already with no changes.