diff --git a/savesync[start](permanent).ash b/savesync[start](permanent).ash index ec64fba..42b29be 100644 --- a/savesync[start](permanent).ash +++ b/savesync[start](permanent).ash @@ -1,9 +1,9 @@ #!/bin/ash # shellcheck shell=dash -. /recalbox/share/system/configs/savesync/savesync.conf - -PIPE="/tmp/savesync_pipe" -LOG_FILE="/recalbox/share/system/logs/savesync.log" +export LOG_FILE="/recalbox/share/system/logs/savesync.log" +export REMOTE_BASE="saves:gamepi-tv" +export PIPE="/tmp/savesync_pipe" +export LOG_FILE="/recalbox/share/system/logs/savesync.log" # Setup the pipe if it doesn't exist [ -p "$PIPE" ] || mkfifo "$PIPE" @@ -26,7 +26,7 @@ while true; do # Fork the event handling ( event_data="${line#EVENT:}" - + write_log "Event received" # Process the multi-line event data # We use echo and a pipe to feed the while loop echo "$event_data" | tr -d '\r' | while IFS="=" read -r key val; do