View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#24
I run it not via ssh, I did it directly from terminal on the phone:
Code:
ariadne sh -c "sh /path/to/script"
What you mean run "sync" command ? Just put "sync" before reboot like this:
Code:
sync
/sbin/reboot
My script looks like this:
Code:
#!/bin/sh

RED='\033[1;31m'
NORMAL='\033[0m'
YELLOW='\033[1;33m'
BLINK='\033[5m'

echo ""
echo -e "${RED}${BLINK} WAIT!${NORMAL}${RED} until it finish process !!!${NORMAL}"
echo -e "${YELLOW}Your phone will reboot automatically!${NORMAL}"
echo ""
read -p "Press Enter to start fixer: " end

perl -pi -w -e 's#21 com.nokia.maemo/local#15 com.nokia.maemo#smg' /var/lib/aegis/refhashlist
perl -pi -w -e 's#com.nokia.maemo/local#com.nokia.maemo#smg' /var/lib/aegis/restok/restok.conf
accli -c tcb-sign -F /var/lib/aegis/refhashlist -i /var/lib/aegis/refhashlist
accli -c tcb-sign -F /var/lib/aegis/restok/restok.conf -i /var/lib/aegis/restok/restok.conf
sync
/sbin/reboot
The phone was connected via ssh, but the command I run from the phone. Maybe I need stop ssh session before signing ?

Last edited by Schturman; 2013-06-20 at 09:31.