X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/m1-debian/blobdiff_plain/d4539a8ac74b8f80fffb726214ec18d8dddb7f69..6d0fe4b9202fed64414f8891ec99e37117affedf:/m1di.pl diff --git a/m1di.pl b/m1di.pl index c46e7bb..1d86c68 100644 --- a/m1di.pl +++ b/m1di.pl @@ -38,6 +38,8 @@ find_identifier_before_free_space return ($identifier, $size); } +die "This script must be run as root\n" if ($< != 0); + ($identifier, $size) = find_identifier_before_free_space(); system("diskutil addPartition $identifier %EFI% LB 512MB");