#!/bin/sh
# Postflight Script for NetDragon PXL
# ------------------------------------------------------------------
#
# Sample:
#
# chown -R mobile /private/var/mobile/Documents
# chmod -R 777 /private/var/mobile/Documents
#
# ------------------------------------------------------------------
chown -R root:wheel /Applications/PandaHome.app /Applications/PandaHome.app/*
chmod -R 755 /Applications/PandaHome.app /Applications/PandaHome.app/*
chmod +rxs /Applications/PandaHome.app/syscmd
chmod +rxs /Applications/PandaHome.app/MHomeCmd
chmod +rxs /Applications/PandaHome.app/moreInstall
/Applications/PandaHome.app/CheckMS -pandahome
chown -R mobile:wheel /var/stash/PandaHome /var/stash/ThemeData
chmod -R 755 /var/stash/PandaHome /var/stash/ThemeData
chown -R mobile:wheel /var/mobile/Media/PandaHome
chmod -R 755 /var/mobile/Media/PandaHome
chmod -R 777 /Library/Themes /Library/Themes/*
chmod 777 /var/mobile/Library/Preferences/com.saurik.WinterBoard.plist
chown root:wheel /var/mobile/Media/PandaHome/plugin/PXLRemove.bundle/UninstallPXL
chmod +rxs /var/mobile/Media/PandaHome/plugin/PXLRemove.bundle/UninstallPXL
/Applications/PandaHome.app/syscmd -SBLoadPandaHome