View Single Post
Old 05-02-2021, 06:05 PM   #52
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,737
Karma: 103020299
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by trcm View Post
I added a step 5.5, so that if anything tries to call these binaries, it gets a successful exit code rather than an error :

# echo "/bin/true" > /usr/bin/otav3
# echo "/bin/true" > /usr/bin/otaupd
# chmod +x /usr/bin/otav3 /usr/bin/otaupd
Shouldn't that be:

# echo "#!/bin/sh" > /usr/bin/otav3
# echo "/bin/true" >> /usr/bin/otav3
# echo "#!/bin/sh" > /usr/bin/otaupd
# echo "/bin/true" >> /usr/bin/otaupd
# chmod 755 /usr/bin/otav3 /usr/bin/otaupd

(last line is minor, but chmod +x results in 775 permissions, which does not match the original permissions)
j.p.s is online now   Reply With Quote