Active Topics

 


Reply
Thread Tools
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#1
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?
__________________
N9 - 16 GB Black Reborn

Tutorial - OpenVPN for N9
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#2
Originally Posted by khan.orak View Post
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?
Usage instructions are in that post AND yes.
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following User Says Thank You to rainisto For This Useful Post:
Posts: 198 | Thanked: 130 times | Joined on Sep 2012 @ Pakistan
#3
I have this script of coderus to resign refhashlist:

Code:
#!/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
stored it in MyDocs/Temp1 folder.

but when I execute it, it gives the following error:

Code:
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")
I do have Inception Installed. any help?
__________________
N9 - 16 GB Black Reborn

Tutorial - OpenVPN for N9

Last edited by khan.orak; 2013-04-08 at 19:11.
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:17.