#!/bin/sh

cd /
mv /System/InstallAtStartup/usr/bin/sudo /usr/bin/sudo

# 4443058
mv /System/InstallAtStartup/usr/lib/libSystem.B.dylib /usr/lib/libSystem.B.dylib

# 4180836, 4324062, 4314975
mv /System/InstallAtStartup/System/Library/Fonts/* /System/Library/Fonts/

# 4217618
mv /System/InstallAtStartup/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
mv /System/InstallAtStartup/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Resources/Info.plist /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Resources/Info.plist
mv /System/InstallAtStartup/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Resources/version.plist /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Resources/version.plist
mv /System/InstallAtStartup/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdimport /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Support/mdimport

# 4320165
mv /System/InstallAtStartup/System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/Info.plist /System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/Info.plist
mv /System/InstallAtStartup/System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/MacOS/GeForce2MXGLDriver /System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/MacOS/GeForce2MXGLDriver
mv /System/InstallAtStartup/System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/PkgInfo /System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/PkgInfo
mv /System/InstallAtStartup/System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/version.plist /System/Library/Extensions/GeForce2MXGLDriver.bundle/Contents/version.plist
mv /System/InstallAtStartup/System/Library/Extensions/GeForce3GLDriver.bundle/Contents/Info.plist /System/Library/Extensions/GeForce3GLDriver.bundle/Contents/Info.plist
mv /System/InstallAtStartup/System/Library/Extensions/GeForce3GLDriver.bundle/Contents/MacOS/GeForce3GLDriver /System/Library/Extensions/GeForce3GLDriver.bundle/Contents/MacOS/GeForce3GLDriver
mv /System/InstallAtStartup/System/Library/Extensions/GeForce3GLDriver.bundle/Contents/PkgInfo /System/Library/Extensions/GeForce3GLDriver.bundle/Contents/PkgInfo
mv /System/InstallAtStartup/System/Library/Extensions/GeForce3GLDriver.bundle/Contents/version.plist /System/Library/Extensions/GeForce3GLDriver.bundle/Contents/version.plist
mv /System/InstallAtStartup/System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/Info.plist /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/Info.plist
mv /System/InstallAtStartup/System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/MacOS/GeForceFXGLDriver /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/MacOS/GeForceFXGLDriver
mv /System/InstallAtStartup/System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/PkgInfo /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/PkgInfo
mv /System/InstallAtStartup/System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/version.plist /System/Library/Extensions/GeForceFXGLDriver.bundle/Contents/version.plist

mv /System/InstallAtStartup/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
mv /System/InstallAtStartup/System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow /System/Library/CoreServices/loginwindow.app/Contents/MacOS/loginwindow

touch "/System/InstallAtStartup/.InstallAtStartupRestartAgain"

