daily pastebin goal
38%
SHARE
TWEET

canuto

a guest Oct 10th, 2012 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         TARGET="/boot/mac"
  2.         SYSTEM="$TARGET/System/Library/CoreServices"
  3.         GRUB64="/boot/efi/EFI/ubuntu/grubx64.efi"
  4.  
  5.         # required folders for mac efi boot
  6.         mkdir -p $SYSTEM
  7.  
  8.         # grub boot efi
  9.         cp $GRUB64 $SYSTEM/boot.efi
  10.  
  11.         # required files for mac efi boot
  12.         cat > $TARGET/mach_kernel <<-EOF
  13.         This file is required for booting
  14.         EOF
  15.  
  16.         cat > $SYSTEM/SystemVersion.plist <<-EOF
  17.         <?xml version="1.0" encoding="UTF-8"?>
  18.         <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
  19.         <plist version="1.0">
  20.         <dict>
  21.                     <key>ProductBuildVersion</key>
  22.                     <string></string>
  23.                     <key>ProductName</key>
  24.                     <string>Linux</string>
  25.                     <key>ProductVersion</key>
  26.                     <string>Ubuntu 12.04</string>
  27.         </dict>
  28.         </plist>
  29.         EOF
  30. f
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top