I need a simple script that will delete the boot cache file at /private/var/db/BootCache.playlist.
sudo rm /private/var/db/BootCache.playlist works in terminal, but i need to put in the root password. how can i accomplish in a script without leaving the root password in plain text?
my goal is to put this into a logout hook so the computer doesn't freeze on reboot... i need this script to run as any user.
any help would be great.