This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Make sure we’re running with root permissions. | |
if [ `whoami` != root ]; then | |
echo Please run this script using sudo | |
echo Just type “sudo !!” | |
exit 1 | |
fi | |
#Check for 64-bit arch | |
if [ uname -m != x86_64 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
umount /mnt | |
gpart destroy -F da0 | |
gpart create -s gpt da0 | |
gpart add -t freebsd-boot -l gpboot -b 40 -s 512K da0 | |
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 da0 | |
gpart add -t efi -l gpefiboot -a4k -s492k da0 |