Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
66 lines (62 sloc) 1.67 KB
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<string>Enable Disk Journaling</string>
<string>Disk Utility.png</string>
### Check to see if the word "Journal" exists when doing a diskutil info check on the "/" drive.
JOURNALED=`/usr/sbin/diskutil info / | grep -a -m 1 Journal | head -1`;
if [ -z "$JOURNALED" ]; then
### Variable is empty
### Exit 0 since the script needs to be run.
echo "Exiting 0";
/usr/sbin/diskutil enableJournal /;
exit 0;
### Variable is not empty, meaning journaling is present. Exit 1 to skip script.
echo "Exiting 1";
exit 1;
<string>Enable Disk Journaling</string>
<string>/usr/sbin/diskutil enableJournal /</string>