#!/bin/sh

if [ `id -u` != '0' ] ; then
    echo "You must use sudo to run this command."
    exit 1
fi

mount -uw /

chown -R root:wheel /System/Library/CoreServices/Finder.app/Contents/PlugIns/nitoTV.frappliance/

chmod 755 /System/Library/CoreServices/Finder.app/Contents/PlugIns/nitoTV.frappliance/Contents/Resources/nitoHelper

chmod +s /System/Library/CoreServices/Finder.app/Contents/PlugIns/nitoTV.frappliance/Contents/Resources/nitoHelper

mount -ur /

exit 0
