Reply
Thread Tools
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.
 
Posts: 31 | Thanked: 10 times | Joined on Apr 2011
#2
it was my fault - I had to 'chmod +x /etc/init.d/rcS' %)
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:18.