-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathUnmount
executable file
·37 lines (29 loc) · 878 Bytes
/
Unmount
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Umount-EFI
# by chris1111
# Umount EFI
if [ -d "/Volumes/EFI" ]; then
hdiutil Unmount -Force "/Volumes/EFI"
fi
if [ -d "/Volumes/ESP" ]; then
hdiutil Unmount -Force "/Volumes/ESP"
fi
if [ -d "/Volumes/EFI 1" ]; then
hdiutil Unmount -Force "/Volumes/EFI 1"
fi
if [ -d "/Volumes/EFI 2" ]; then
hdiutil Unmount -Force "/Volumes/EFI 2"
fi
if [ -d "/Volumes/EFI 3" ]; then
hdiutil Unmount -Force "/Volumes/EFI 3"
fi
if [ -d "/Volumes/EFI 4" ]; then
hdiutil Unmount -Force "/Volumes/EFI 4"
fi
if [ -d "/Volumes/EFI 5" ]; then
hdiutil Unmount -Force "/Volumes/EFI 5"
fi
# Restart AlternateImage
if [ -d "/Applications/DropEFI.app" ]; then
killall -c DropEFI && sleep 0.2 && open /Applications/DropEFI.app && sleep 0.5 && osascript -e 'display notification "Successfully Unmount" with title "DropEFI" subtitle "EFI Partition" sound name "funk"'
fi