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.
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.