mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-23 16:39:17 +01:00
Move LaunchDaemons for daibutsu sshrd
This commit is contained in:
parent
eb0bcbad33
commit
e1d1af0ae8
15
resources/jailbreak/daibutsu/move.sh
Executable file
15
resources/jailbreak/daibutsu/move.sh
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
set -x
|
||||||
|
mv /mnt1/usr/libexec/CrashHousekeeping /mnt1/usr/libexec/CrashHousekeeping_o
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist /mnt1/System/Library/LaunchDaemons/com.saurik.Cydia.Startup.plist
|
||||||
|
rm -rf /mnt1/Library/LaunchDaemons
|
||||||
|
mv /mnt1/System/Library/LaunchDaemons /mnt1/Library/LaunchDaemons
|
||||||
|
mv /mnt1/System/Library/NanoLaunchDaemons /mnt1/Library/NanoLaunchDaemons
|
||||||
|
mkdir -p /mnt1/System/Library/LaunchDaemons
|
||||||
|
mv /mnt1/Library/LaunchDaemons/bootps.plist /mnt1/System/Library/LaunchDaemons/bootps.plist
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.CrashHousekeeping.plist /mnt1/System/Library/LaunchDaemons/com.apple.CrashHousekeeping.plist
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.MobileFileIntegrity.plist /mnt1/System/Library/LaunchDaemons/com.apple.MobileFileIntegrity.plist
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.mDNSResponder.plist /mnt1/System/Library/LaunchDaemons/com.apple.mDNSResponder.plist_
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.mobile.softwareupdated.plist /mnt1/System/Library/LaunchDaemons/com.apple.mobile.softwareupdated.plist_
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.softwareupdateservicesd.plist /mnt1/System/Library/LaunchDaemons/com.apple.softwareupdateservicesd.plist_
|
||||||
|
mv /mnt1/Library/LaunchDaemons/com.apple.jetsamproperties.*.plist /mnt1/System/Library/LaunchDaemons
|
10
restore.sh
10
restore.sh
@ -2808,7 +2808,6 @@ device_ramdisk() {
|
|||||||
4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";;
|
4.2.1 ) $ssh -p 2222 root@127.0.0.1 "[[ ! -e /mnt1/sbin/punchd ]] && mv /mnt1/sbin/launchd /mnt1/sbin/punchd";;
|
||||||
esac
|
esac
|
||||||
case $vers in
|
case $vers in
|
||||||
8.4.1 ) untether="untether.tar";;
|
|
||||||
4.2.1 | 4.1 | 4.0* | 3.2.2 )
|
4.2.1 | 4.1 | 4.0* | 3.2.2 )
|
||||||
untether="${device_type}_${build}.tar"
|
untether="${device_type}_${build}.tar"
|
||||||
if [[ $device_type == "iPod2,1" ]]; then
|
if [[ $device_type == "iPod2,1" ]]; then
|
||||||
@ -2820,7 +2819,7 @@ device_ramdisk() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
case $vers in
|
case $vers in
|
||||||
4.1 | 4.0* | 3.2.2 ) :;;
|
8.4.1 | 4.1 | 4.0* | 3.2.2 ) :;;
|
||||||
* )
|
* )
|
||||||
log "Extracting $untether"
|
log "Extracting $untether"
|
||||||
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
||||||
@ -2829,6 +2828,13 @@ device_ramdisk() {
|
|||||||
device_ramdisktar freeze.tar data
|
device_ramdisktar freeze.tar data
|
||||||
sleep 3
|
sleep 3
|
||||||
if [[ $vers == "8.4.1" ]]; then
|
if [[ $vers == "8.4.1" ]]; then
|
||||||
|
log "Sending daibutsu/move.sh"
|
||||||
|
$scp -P 2222 $jelbrek/daibutsu/move.sh root@127.0.0.1:/
|
||||||
|
log "Moving files"
|
||||||
|
$ssh -p 2222 root@127.0.0.1 "bash /move.sh"
|
||||||
|
untether="untether.tar"
|
||||||
|
log "Extracting $untether"
|
||||||
|
$ssh -p 2222 root@127.0.0.1 "tar -xvf /mnt1/$untether -C /mnt1; rm /mnt1/$untether"
|
||||||
log "Sending daibutsu/bin.tar"
|
log "Sending daibutsu/bin.tar"
|
||||||
$scp -P 2222 $jelbrek/daibutsu/bin.tar root@127.0.0.1:/mnt1
|
$scp -P 2222 $jelbrek/daibutsu/bin.tar root@127.0.0.1:/mnt1
|
||||||
log "Extracting bin.tar"
|
log "Extracting bin.tar"
|
||||||
|
Loading…
Reference in New Issue
Block a user