fixed logging hopefully?
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
# shellcheck shell=dash
|
# shellcheck shell=dash
|
||||||
. /recalbox/share/system/configs/savesync/savesync.conf
|
export LOG_FILE="/recalbox/share/system/logs/savesync.log"
|
||||||
|
export REMOTE_BASE="saves:gamepi-tv"
|
||||||
PIPE="/tmp/savesync_pipe"
|
export PIPE="/tmp/savesync_pipe"
|
||||||
LOG_FILE="/recalbox/share/system/logs/savesync.log"
|
export LOG_FILE="/recalbox/share/system/logs/savesync.log"
|
||||||
|
|
||||||
# Setup the pipe if it doesn't exist
|
# Setup the pipe if it doesn't exist
|
||||||
[ -p "$PIPE" ] || mkfifo "$PIPE"
|
[ -p "$PIPE" ] || mkfifo "$PIPE"
|
||||||
@@ -26,7 +26,7 @@ while true; do
|
|||||||
# Fork the event handling
|
# Fork the event handling
|
||||||
(
|
(
|
||||||
event_data="${line#EVENT:}"
|
event_data="${line#EVENT:}"
|
||||||
|
write_log "Event received"
|
||||||
# Process the multi-line event data
|
# Process the multi-line event data
|
||||||
# We use echo and a pipe to feed the while loop
|
# We use echo and a pipe to feed the while loop
|
||||||
echo "$event_data" | tr -d '\r' | while IFS="=" read -r key val; do
|
echo "$event_data" | tr -d '\r' | while IFS="=" read -r key val; do
|
||||||
|
|||||||
Reference in New Issue
Block a user