#!/bin/bash # by cyperghost for batocera testfile="/userdata/system/scripts/output.txt" echo "END Script!" >> $testfile echo "Parameter: $@" >> $testfile echo "Systemname: $1" >> $testfile echo "Emulatorcore: $2" >> $testfile echo "ROM: $(basename "$3")" >> $testfile [[ "$4" == "libretro" ]] && echo "You are free!" >> $testfile || echo "No hotkey is pure hell eh??" >> $testfile