summaryrefslogtreecommitdiffstats
path: root/scripts/relink-binaries.sh
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2016-01-29 23:37:37 +0100
committerEthan Yonker <dees_troy@teamw.in>2016-01-30 05:53:48 +0100
commit9ee045a21c661dc38696b8425419cbbc32d8e85c (patch)
tree8e3bbf83de028c5da291c93dd7c4fa1e18bbf073 /scripts/relink-binaries.sh
parentRemove execute permissions from source files (diff)
downloadandroid_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar.gz
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar.bz2
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar.lz
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar.xz
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.tar.zst
android_bootable_recovery-9ee045a21c661dc38696b8425419cbbc32d8e85c.zip
Diffstat (limited to '')
-rw-r--r--[-rwxr-xr-x]scripts/relink-binaries.sh (renamed from prebuilt/relink-binaries.sh)4
1 files changed, 2 insertions, 2 deletions
diff --git a/prebuilt/relink-binaries.sh b/scripts/relink-binaries.sh
index 37528531a..0188560e6 100755..100644
--- a/prebuilt/relink-binaries.sh
+++ b/scripts/relink-binaries.sh
@@ -6,7 +6,7 @@ process_file()
dst=$1-1 #/$(basename $2)
cp -f -p $src $dst
- sed "s|/system/bin/linker\x0|/sbin/linker\x0\x0\x0\x0\x0\x0\x0|g" $dst | sed "s|/system/bin/sh\x0|/sbin/sh\x0\x0\x0\x0\x0\x0\x0|g" > $dst-mod
+ sed "s|/system/bin/linker64\x0|/sbin/linker64\x0\x0\x0\x0\x0\x0\x0|g" $dst | sed "s|/system/bin/linker\x0|/sbin/linker\x0\x0\x0\x0\x0\x0\x0|g" | sed "s|/system/bin/sh\x0|/sbin/sh\x0\x0\x0\x0\x0\x0\x0|g" > $dst-mod
#sed "s|/sbin/linker\x0|/system/bin/linker\x0\x0\x0\x0\x0\x0\x0|g" $dst | sed "s|/sbin/sh\x0|/system/bin/sh\x0\x0\x0\x0\x0\x0\x0|g" > $dst-mod
rm $dst
}
@@ -16,4 +16,4 @@ dest=$1
for ARG in $*
do
process_file $dest $ARG
-done \ No newline at end of file
+done