![]() |
2013-04-08
, 15:58
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#2
|
So I modified this file /etc/dbus-1/system.d/dnsmasq.conf .
It worked fine and smoothly. Now today, my phone died while I was asleep because of very low power and was causing REBOOT LOOPS. Nonetheless I managed to bring it back to life via R&D Mode. Reverted the changes I made to dnsmasq.conf. Then disabling the R&D Mode and going back into Production mode removed the bootloops.
Now whenever I want to make changes to dnsmasq.conf again and When I reboot the phone, it goes into bootloops again.
Somewhere I read that proper signing of REFHASHLIST is required.
Found this refhashlist patcher by coderus Here.
But how to use it AND do I need inception/openmode to sign the list?
The Following User Says Thank You to rainisto For This Useful Post: | ||
![]() |
2013-04-08
, 19:09
|
Posts: 198 |
Thanked: 130 times |
Joined on Sep 2012
@ Pakistan
|
#3
|
#!/bin/sh #refhashlist patcher cp /var/lib/aegis/refhashlist /var/lib/aegis/refhashlist.backup pathname=$1 if [ "$pathname" == "" ]; then exit 1; fi line=$(grep "${pathname}" /var/lib/aegis/refhashlist) if [ "$line" == "" ]; then exit 2; else #oldsha1=$(for ii in $(sha1sum /${pathname}); do echo $ii; break; done) #real file sha1 #oldsha1=$(i=0; for ii in $line; do i=$((i+1)); if [ $i -eq 6 ]; then echo $ii; break; fi; done;) #sha1 parsed from line, not real sha1 oldsha1=$(echo ${line} | sed -re "s/.*([a-f0-9]{40}).*/\1/") #faster sha1 extraction using regexp newsha1=$(for ii in $(sha1sum "/${pathname}"); do echo $ii; break; done) newline=$(echo ${line} | sed -e "s/${oldsha1}/${newsha1}/") sed -i -e "s@${line}@${newline}@" /var/lib/aegis/refhashlist accli -c tcb-sign -F /var/lib/aegis/refhashlist < /var/lib/aegis/refhashlist fi
home/user/MyDocs/Temp1 # /bin/sh refhashlist.s h etc/dbus-1/system.d/dnsmasq.conf refhashlist.sh: line 18: syntax error: unexpected end of file (expecting "fi")
It worked fine and smoothly. Now today, my phone died while I was asleep because of very low power and was causing REBOOT LOOPS. Nonetheless I managed to bring it back to life via R&D Mode. Reverted the changes I made to dnsmasq.conf. Then disabling the R&D Mode and going back into Production mode removed the bootloops.
Now whenever I want to make changes to dnsmasq.conf again and When I reboot the phone, it goes into bootloops again.
Somewhere I read that proper signing of REFHASHLIST is required.
Found this refhashlist patcher by coderus Here.
But how to use it AND do I need inception/openmode to sign the list?
N9 - 16 GB Black Reborn
Tutorial - OpenVPN for N9