-
Notifications
You must be signed in to change notification settings - Fork 16
/
chimera1n.sh
50 lines (48 loc) · 3.35 KB
/
chimera1n.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
echo '#!/bin/bash' > chimera-device-deploy.sh
echo 'cd /var/root' >> chimera-device-deploy.sh
echo 'gzip -d bootstrap.tar.gz' >> chimera-device-deploy.sh
echo 'gzip -d launchctl.gz' >> chimera-device-deploy.sh
echo 'mount -uw -o union /dev/disk0s1s1' >> chimera-device-deploy.sh
echo 'cp launchctl /bin/launchctl' >> chimera-device-deploy.sh
echo 'chmod +x /bin/launchctl' >> chimera-device-deploy.sh
echo 'rm -rf /etc/profile' >> chimera-device-deploy.sh
echo 'rm -rf /etc/profile.d' >> chimera-device-deploy.sh
echo 'rm -rf /etc/alternatives' >> chimera-device-deploy.sh
echo 'rm -rf /etc/apt' >> chimera-device-deploy.sh
echo 'rm -rf /etc/ssl' >> chimera-device-deploy.sh
echo 'rm -rf /etc/ssh' >> chimera-device-deploy.sh
echo 'rm -rf /etc/dpkg' >> chimera-device-deploy.sh
echo 'rm -rf /Library/dpkg' >> chimera-device-deploy.sh
echo 'rm -rf /var/cache' >> chimera-device-deploy.sh
echo 'rm -rf /var/lib' >> chimera-device-deploy.sh
echo 'tar --preserve-permissions -xkf bootstrap.tar -C /' >> chimera-device-deploy.sh
echo '/usr/libexec/cydia/firmware.sh' >> chimera-device-deploy.sh
echo 'mkdir -p /etc/apt/sources.list.d/' >> chimera-device-deploy.sh
echo 'echo "Types: deb" > /etc/apt/sources.list.d/chimera.sources' >> chimera-device-deploy.sh
echo 'echo "URIs: https://repo.chimera.sh/" >> /etc/apt/sources.list.d/chimera.sources' >> chimera-device-deploy.sh
echo 'echo "Suites: ./" >> /etc/apt/sources.list.d/chimera.sources' >> chimera-device-deploy.sh
echo 'echo "Components: " >> /etc/apt/sources.list.d/chimera.sources' >> chimera-device-deploy.sh
echo 'echo "" >> /etc/apt/sources.list.d/chimera.sources' >> chimera-device-deploy.sh
echo 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games dpkg -i cydia_2.3_iphoneos-arm.deb org.coolstar.sileo_1.7.6_iphoneos-arm.deb' >> chimera-device-deploy.sh
echo 'echo -n "" > /var/lib/dpkg/available' >> chimera-device-deploy.sh
echo '/Library/dpkg/info/openssh.postinst' >> chimera-device-deploy.sh
echo '/Library/dpkg/info/profile.d.postinst' >> chimera-device-deploy.sh
echo 'launchctl load -w /Library/LaunchDaemons/com.openssh.sshd.plist' >> chimera-device-deploy.sh
echo 'uicache -p /Applications/Sileo.app' >> chimera-device-deploy.sh
printf %s 'SNAPSHOT=$(snappy -s | ' >> chimera-device-deploy.sh
printf %s "cut -d ' ' -f 3 | tr -d '\n')" >> chimera-device-deploy.sh
echo '' >> chimera-device-deploy.sh
echo 'snappy -f / -r $SNAPSHOT -t orig-fs' >> chimera-device-deploy.sh
echo 'touch /.mount_rw' >> chimera-device-deploy.sh
echo 'touch /.bootstrapped' >> chimera-device-deploy.sh
echo 'rm bootstrap.tar' >> chimera-device-deploy.sh
echo 'rm cydia_2.3_iphoneos-arm.deb' >> chimera-device-deploy.sh
echo 'rm launchctl' >> chimera-device-deploy.sh
echo 'rm org.coolstar.sileo_1.7.6_iphoneos-arm.deb' >> chimera-device-deploy.sh
echo 'rm chimera-device-deploy.sh' >> chimera-device-deploy.sh
echo "Downloading Resources..."
wget https://github.com/coolstar/Chimera-bootstrap/raw/master/bootstrap.tar.gz https://github.com/coolstar/Chimera-bootstrap/raw/master/launchctl.gz https://github.com/coolstar/Chimera-bootstrap/raw/master/cydia_2.3_iphoneos-arm.deb https://github.com/coolstar/Chimera-bootstrap/raw/master/org.coolstar.sileo_1.7.6_iphoneos-arm.deb
clear
echo "Installing Chimera bootstrap and Sileo on your device"
bash /var/root/chimera-device-deploy.sh