#!/bin/bash

echo restoremessages by ally && echo closing messages.app && killall MobileSMS && echo deleting current messages && rm -r /var/mobile/Library/SMS && echo restoring backup && cp -r /var/mobile/SMS /var/mobile/Library && echo setting ownership && chown mobile -R /var/mobile/Library/SMS && echo setting permissions && chmod 0755 /var/mobile/Library/SMS && echo deleting backup && rm -r /var/mobile/SMS && echo executing ldrestart && ldrestart