Mausberry Shutdown Script Doesn't Save Metadata
-
first
-rw-r----- 1 root adm 2281836 Jul 29 03:38 /var/log/syslog
second
-rwxrwx--- 1 root gpio 4.0K Jul 29 02:50 /sys/class/gpio/export lrwxrwxrwx 1 root gpio 0 Jul 29 02:50 /sys/class/gpio/gpio23 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio23 lrwxrwxrwx 1 root gpio 0 Jul 29 02:50 /sys/class/gpio/gpio24 -> ../../devices/platform/soc/3f200000.gpio/gpiochip0/gpio/gpio24 lrwxrwxrwx 1 root gpio 0 Jul 29 02:50 /sys/class/gpio/gpiochip0 -> ../../devices/platform/soc/3f200000.gpio/gpio/gpiochip0 lrwxrwxrwx 1 root gpio 0 Jul 29 02:50 /sys/class/gpio/gpiochip100 -> ../../devices/gpiochip2/gpio/gpiochip100 lrwxrwxrwx 1 root gpio 0 Jul 29 02:50 /sys/class/gpio/gpiochip128 -> ../../devices/gpiochip1/gpio/gpiochip128 -rwxrwx--- 1 root gpio 4.0K Jul 29 02:50 /sys/class/gpio/unexport
-
-
-rw-r--r-- 1 pi pi 16656 Jul 29 03:44 debug.log
i found a debug.log in the home (~) directory
-
@lostless open this file on your Windows (I'm assuming you're using Windows), select all text and paste on ghostbin.com
-
@meleu nope mac. I can boot into windows if need be.
-
@lostless nop, I just need you to copy the entire file
-
@meleu
its just/var/log/syslog:Jul 23 06:28:29 genepi systemd[1]: Starting /etc/rc.local Compatibility... /var/log/syslog:Jul 23 06:28:29 genepi systemd[1]: Started /etc/rc.local Compatibility.
over and over with different dates and times. nothing else.
-
@lostless now I need you to do the same thing for
/etc/rc.local
and/etc/switch.sh
(the last one is supposed to be my v1.7 script, but please, paste it on ghostbin so I can really check if everything is fine) -
/etc/rc.local
https://ghostbin.com/paste/goucc/switch.sh
https://ghostbin.com/paste/5agap -
ls -l /etc/switch.sh
-
@meleu said in Mausberry Shutdown Script Doesn't Save Metadata:
ls -l /etc/switch.sh
-rwxrwxrwx 1 root root 1889 Jul 29 02:42 /etc/switch.sh
-
@lostless
damn! I'm not getting what's wrong! Let's try this:sudo bash -x /etc/switch.sh & 2> /home/pi/script-debug.txt
And then press the f%#&ing button. Pretty please... :)
It should turn off your pi...
-
@meleu aaaaaaaaaaaaaannnnnnnddddd...................
...........NO GOOD. >:( sorry man.
-
+ GPIOpin1=23 + GPIOpin2=24 + echo 23 /etc/switch.sh: line 22: echo: write error: Device or resource busy + echo in + echo 24 /etc/switch.sh: line 24: echo: write error: Device or resource busy + echo out + echo 1 + file=/sys/class/gpio/gpio23/value + sleep 30 + inotifywait -qq -e modify /sys/class/gpio/gpio23/value
the readout of that and its stuck. My terminal has not finished what its doing.
-
@lostless are you able to use IRC? maybe it's better than this forum for an online conversation... :P
edit I'm at #retropie at irc.freenode.net
-
@meleu never used IRC. But willing to learn. Just need a client I assume? and somehow the #retropie is relevant somehow.
-
@lostless let's continue here then. Is your terminal "frozen"? I mean, the script didn't stopped, right?
-
@meleu i figured out irc. I'm there
-
@lostless Great. On your irc client, perform these commands:
/server irc.freenode.net /join #retropie
-
@meleu im in, i wasnt kidding. LOL
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.