#!/bin/sh echo "Fixing the Xgrid Preference Pane error..." echo "The script needs to run commands as root and will ask for the administrator password" sudo cp -p /Library/PreferencePanes/Xgrid.prefPane/Contents/MacOS/writeconfig-xgrid-template /Library/Application\ Support/Xgrid/writeconfig-xgrid echo "The command 'cp -p /Library/PreferencePanes/Xgrid.prefPane/Contents/MacOS/writeconfig-xgrid-template /Library/Application\ Support/Xgrid/writeconfig-xgrid' was completed" sudo chmod a-w /Library/Application\ Support/Xgrid/writeconfig-xgrid echo "The command 'chmod a-w /Library/Application\ Support/Xgrid/writeconfig-xgrid' was completed" sudo chmod u+s /Library/Application\ Support/Xgrid/writeconfig-xgrid echo "The command 'chmod u+s /Library/Application\ Support/Xgrid/writeconfig-xgrid' was completed"