mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-11 16:37:45 -04:00
hiby: r1_patcher: embed hiby_player.sh
Make it a single-file, self-contained script. Change-Id: Idb3e375f1f9774c9328288765c7d1c7c1e01e2d3
This commit is contained in:
parent
db8494d4e0
commit
58ace97a4e
2 changed files with 16 additions and 14 deletions
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/sh
|
||||
|
||||
killall hiby_player &>/dev/null
|
||||
killall -9 hiby_player &>/dev/null
|
||||
|
||||
killall bootloader.rb &>/dev/null
|
||||
killall -9 bootloader.rb &>/dev/null
|
||||
|
||||
/usr/bin/bootloader.rb
|
||||
sleep 1s
|
||||
|
|
@ -51,11 +51,23 @@ unsquashfs -f -d "$workingdir_in/rootfs/extracted" "$workingdir_in/rootfs/rootfs
|
|||
################################################################################
|
||||
|
||||
# copy 'bootloader'
|
||||
cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb"
|
||||
chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/bootloader.rb"
|
||||
bootloader_file="bootloader.rb"
|
||||
cp "$2" "$workingdir_in/rootfs/extracted/usr/bin/$bootloader_file"
|
||||
chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/$bootloader_file"
|
||||
|
||||
# copy modified 'hibyplayer.sh' script
|
||||
cp hiby_player.sh "$workingdir_in/rootfs/extracted/usr/bin/"
|
||||
# create modified 'hiby_player.sh' script
|
||||
cat << EOF > "$workingdir_in/rootfs/extracted/usr/bin/hiby_player.sh"
|
||||
#!/bin/sh
|
||||
|
||||
killall hiby_player &>/dev/null
|
||||
killall -9 hiby_player &>/dev/null
|
||||
|
||||
killall $bootloader_file &>/dev/null
|
||||
killall -9 $bootloader_file &>/dev/null
|
||||
|
||||
/usr/bin/$bootloader_file
|
||||
sleep 1s
|
||||
EOF
|
||||
chmod 0755 "$workingdir_in/rootfs/extracted/usr/bin/hiby_player.sh"
|
||||
|
||||
################################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue