summaryrefslogtreecommitdiff
path: root/install_native.sh
blob: 351a0a84fb308c63d9971398439d82288b9f8de4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

#ssh root@localhost -p 2222 "rm main_arm"

#scp -P 2222 bin/main_arm root@localhost:main_arm
#scp -P 2222 exp.js root@localhost:exp.js

bin/main_arm -f /usr/sbin/racoon -j exp.js -o racoon.conf
cp racoon.conf /etc/racoon/racoon.conf

rm /var/root/stage4.js
touch /var/root/stage4.js
cat stage4.js > /var/root/stage4.js
chmod 777 /var/root/stage4.js
ln /var/root/stage4.js /var/mobile/Media/stage4.js

#bin/main -f ~/racoon -j ../lol.js | ssh root@localhost -p 2222 "cat > /etc/racoon/racoon.conf"

#bin/main -f ~/racoon | ssh root@192.168.1.6 "cat > racoon.conf"
#bin/main -f ~/racoon | ssh root@192.168.1.6 "cat > /etc/racoon/racoon.conf"