Script
#!/bin/sh
#
# Name: Symlink Creator for o2_de_custom.bundle
# Desc: The shell script is called by the custom Launch Daemon
# de.volkspost.pwn_carrierbundle.o2_de_pwn.plist
# One-time checks if symlink is already there, renames it the and
# creates symlink for the custom carrier bundle
# deletes Launch Daemon and gets auto-deleted itself when done
#
# For users on Apple partner carriers but without iPhone contract
# Check if a symlink 26207 exists and rename it to old_26207
if [ -d /System/Library/Carrier\ Bundles/26207 ]
then
mv /System/Library/Carrier\ Bundles/26207 /System/Library/Carrier\ Bundles/old_26207
fi
# Create symlink for the custom carrier bundle o2_de_custom.bundle
ln -s /System/Library/Carrier\ Bundles/o2_de_custom.bundle /System/Library/Carrier\ Bundles/26207
# Remove the Launch Daemon de.volkspost.pwn_carrierbundle.o2_de_pwn.plist
rm /System/Library/LaunchDaemons/com.yourcompany.pwn_carrierbundle.o2_de_pwn.plist
# remove this script from custom carrier bundle o2_de_custom.bundle directory
rm /System/Library/Carrier\ Bundles/o2_de_custom.bundle/symlinker.sh
Bookmarks