| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/bin/sh
- ./boot-fs.sh &
- sleep 2
- if [ `./PurpleExec --list | grep UDID | wc -l` -eq 0 ]; then
- kk=1;
- while [ $kk -lt 10 ]; do
- kk=$(($kk+1))
- echo "Trial $kk"
- sleep 2
- [ `./PurpleExec --list | grep UDID | wc -l` -eq 1 ] && break;
- done
- if [ `./PurpleExec --list | grep UDID | wc -l` -eq 0 ]; then
- exit 1
- fi
- fi
- udid=`./PurpleExec --list | grep UDID | cut -d":" -f2 | awk '{print $1}'`
- ./PurpleExec --pair $udid
- sleep 2
- if [ `./PurpleExec --list | grep unpaired | wc -l` -eq 1 ]; then
- ./PurpleExec --pair $udid
- sleep 2
- if [ `./PurpleExec --list | grep unpaired | wc -l` -eq 1 ]; then
- ./PurpleExec --pair $udid
- sleep 2
- if [ `./PurpleExec --list | grep unpaired | wc -l` -eq 1 ]; then
- exit 2;
- fi
- fi
- fi
- ./PurpleExec /bin/rm --args "-r","/var/root/CoEx"
- ./tcprelay --portoffset 10000 23 873 &
- sleep 2
- ./rsync.sh
- checkrsync=`./PurpleExec /bin/ls --args "/var/root" | grep CoEx | wc -l`
- if [ $checkrsync -eq 0 ]; then
- exit 3;
- fi
- ./PurpleExec /bin/chmod --args "755,/var/root/CoEx/chm.sh"
- ./PurpleExec /var/root/CoEx/chm.sh
|