![]() |
patching /etc/init.d/rcS from script
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 :) |
Re: patching /etc/init.d/rcS from script [closed]
it was my fault - I had to 'chmod +x /etc/init.d/rcS' %)
|
All times are GMT. The time now is 03:23. |
vBulletin® Version 3.8.8