Mausberry Shutdown Script Doesn't Save Metadata
-
@meleu it works!!!!!! but now it looks like i blew out the gpio pin for my reset button. NOOOOOOOOOOOOOOOOO. That what i get for using a different build without gpio setup. GPIO DANGEROUS TO USE if not setup?
-
@lostless sorry, I didn't understand your last question...
-
@meleu has nothing to do with the script. that works
. i was testing with another memory card without my gpio setup so i had 3.3v through a 10k resistor to the gpio. i think i burned out my gpio pins
Permissions issue I think. Reinstalled and gpio is now working -
@meleu ;) So you see ... PID numbers are better to handle ;)
But I think in the kodi-case a simplepkill kodi
would be better. Or am I wrong? Sorry I never will get the result as I never will install Kodi on my Pi alongside with RetroPie ;) -
@lostless hey man, would you be kind enough to test this version?:
#!/bin/bash # the "sed" command below isn't a crypted message, it's just a Regular Expression # If you are very curious, feel free to ask. emucall="$(sed '4!d; s/\([\\"]\|[[:alnum:]_]\+=[^ ]* \)//g; s/[][(){}^$*.|+? ]/\\&/g' /dev/shm/runcommand.info)" # If there's an emulator running, we need to kill it and go back to ES if [[ -n "$emucall" ]]; then emupid="$(pgrep -f "$emucall" | tr '\n' ' ')" pkill -P "$(echo $emupid | tr ' ' ',')" kill "$emupid" wait "$emupid" sleep 5 # maybe it can be lesser fi
Thanks in advance.
-
@meleu sorry, not working
debug output/home/pi/exit.sh: line 4: unexpected EOF while looking for matching `)' /home/pi/exit.sh: line 14: syntax error: unexpected end of file
-
@lostless ooops! my fault. I edited the script above fixing the problem. can you please try again.
-
@meleu all good.
-
@lostless does it mean it works? :)
-
@meleu yes its working
-
@lostless thanks man! ;-)
-
@meleu My nespi is practically done. The reset is working wonderfully,
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.