Thread
:
patching /etc/init.d/rcS from script
View Single Post
metawishmaster
2011-07-12 , 17:48
Posts: 31 | Thanked: 10 times | Joined on Apr 2011
#
1
Hi All!
I need to run some script (secret_wrapper.sh) at the early stage of boot, so I trying to patch /etc/ini.d/rcS
It works perfectly, if I do it by hands, but it leads to device bricking in the case of executing such script:
...
grep -q "secret_wrapper\.sh" /etc/init.d/rcS
if [ "$?" != "0" ]; then
cat /etc/init.d/rcS | awk '{ if ($0 == "exit 0") print ". /usr/lib/cryptmenu/secret_wrapper.sh"; print $0; }' > /tmp/rcS.tmp
mv /tmp/rcS.tmp /etc/init.d/rcS
fi
...
I don't know what to do and reflash my N900 up to 10 times per day
Help me please
Last edited by metawishmaster; 2011-07-12 at
18:15
.
Quote & Reply
|
metawishmaster
View Public Profile
Send a private message to metawishmaster
Find all posts by metawishmaster