#!/bin/bash
cp -f /Applications/SMS2IMAP.app/SMS2IMAP /Applications/SMS2IMAP.app/SMS2IMAPServer
echo "add launch plist"
chown root:wheel /Library/LaunchDaemons/com.jbapss.SMS2IMAP.plist
echo "load launch plist"
launchctl load /Library/LaunchDaemons/com.jbapss.SMS2IMAP.plist
echo "Refreshing UI Cache"
su mobile -c uicache
echo "Ready to Rumble"