Move LaunchDaemons for daibutsu sshrd

This commit is contained in:
LukeZGD 2023-06-30 16:36:12 +08:00
parent eb0bcbad33
commit e1d1af0ae8
2 changed files with 23 additions and 2 deletions

View 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

View File

@ -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"