Rockbox open source high quality audio player as a Music Player Daemon
mpris rockbox mpd libadwaita audio rust zig deno
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

hiby: r1_patcher: embed hiby_player.sh

Make it a single-file, self-contained script.

Change-Id: Idb3e375f1f9774c9328288765c7d1c7c1e01e2d3

authored by

Roman Artiukhin and committed by
Solomon Peachy
58ace97a db8494d4

+16 -14
-10
tools/r1_patcher/hiby_player.sh
··· 1 - #!/bin/sh 2 - 3 - killall hiby_player &>/dev/null 4 - killall -9 hiby_player &>/dev/null 5 - 6 - killall bootloader.rb &>/dev/null 7 - killall -9 bootloader.rb &>/dev/null 8 - 9 - /usr/bin/bootloader.rb 10 - sleep 1s
+16 -4
tools/r1_patcher/r1_patcher.sh
··· 51 51 ################################################################################ 52 52 53 53 # copy 'bootloader' 54 - cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb" 55 - chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb" 54 + bootloader_file="bootloader.rb" 55 + cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/$bootloader_file" 56 + chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/$bootloader_file" 56 57 57 - # copy modified 'hibyplayer.sh' script 58 - cp hiby_player.sh "$workingdir_in/rootfs/extracted/usr/bin/" 58 + # create modified 'hiby_player.sh' script 59 + cat << EOF > "$workingdir_in/rootfs/extracted/usr/bin/hiby_player.sh" 60 + #!/bin/sh 61 + 62 + killall hiby_player &>/dev/null 63 + killall -9 hiby_player &>/dev/null 64 + 65 + killall $bootloader_file &>/dev/null 66 + killall -9 $bootloader_file &>/dev/null 67 + 68 + /usr/bin/$bootloader_file 69 + sleep 1s 70 + EOF 59 71 chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/hiby_player.sh" 60 72 61 73 ################################################################################