Browse Source

Fixed Bootcamp Icon script

Thomas Buck 9 years ago
parent
commit
4c12ba99d5
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      input/blog/2015/2015_07_01_bootcamp_icon_fix.md

+ 2
- 1
input/blog/2015/2015_07_01_bootcamp_icon_fix.md View File

21
 
21
 
22
     cp /Volumes/TX-55/.VolumeIcon.icns /Users/thomas/Pictures/Icons/VolumeIcon.icns
22
     cp /Volumes/TX-55/.VolumeIcon.icns /Users/thomas/Pictures/Icons/VolumeIcon.icns
23
 
23
 
24
-Next, we need to create a little shell script that copies this file again after it is lost on reboot:
24
+Next, we need to create a little shell script that copies this file again and sets the icon flag after they are lost on reboot:
25
 
25
 
26
     vim /Users/thomas/bin/fixBootcamp.sh
26
     vim /Users/thomas/bin/fixBootcamp.sh
27
     
27
     
28
     #!/bin/sh
28
     #!/bin/sh
29
     cp /Users/thomas/Pictures/Icons/VolumeIcon.icns /Volumes/TX-55/.VolumeIcon.icns
29
     cp /Users/thomas/Pictures/Icons/VolumeIcon.icns /Volumes/TX-55/.VolumeIcon.icns
30
+    SetFile -a C /Volumes/TX-55
30
     
31
     
31
     :wq
32
     :wq
32
     chmod a+x /Users/thomas/bin/fixBootcamp.sh
33
     chmod a+x /Users/thomas/bin/fixBootcamp.sh

Loading…
Cancel
Save