From 9dadc0d3c6a2b5685ac3b5c3b10f881c27fec0eb Mon Sep 17 00:00:00 2001 From: "Roderick W. Smith" Date: Fri, 16 Oct 2015 09:57:02 -0400 Subject: [PATCH] Added uninstall-fixparts and uninstall-gdisk scripts for use under OS X. --- uninstall-fixparts | 24 ++++++++++++++++++++++++ uninstall-gdisk | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100755 uninstall-fixparts create mode 100755 uninstall-gdisk diff --git a/uninstall-fixparts b/uninstall-fixparts new file mode 100755 index 0000000..311a0a0 --- /dev/null +++ b/uninstall-fixparts @@ -0,0 +1,24 @@ +#!/bin/bash + +# Script to uninstall FixParts from OS X + +OSName=`uname -s` +if [[ $OSName != 'Darwin' ]] ; then + echo "This script is useful only under OS X! Exiting!" + exit 1 +fi + +# Remove from pre-1.0.1 locations +rm -f /usr/sbin/fixparts +rm -rf /usr/share/doc/fixparts +rm -f /usr/share/man/man8/fixparts.8 + +# Remove from 1.0.1 (and later) locations +rm -f /usr/local/bin/fixparts +rm -rf /usr/local/doc/fixparts +rm -f /usr/local/man/man8/fixparts.8 + +echo "All FixParts program files successfully removed!" + +# And finally, erase this script itself.... +rm -f /usr/local/bin/uninstall-fixparts diff --git a/uninstall-gdisk b/uninstall-gdisk new file mode 100755 index 0000000..b74f7f0 --- /dev/null +++ b/uninstall-gdisk @@ -0,0 +1,32 @@ +#!/bin/bash + +# Script to uninstall GPT fdisk from OS X + +OSName=`uname -s` +if [[ $OSName != 'Darwin' ]] ; then + echo "This script is useful only under OS X! Exiting!" + exit 1 +fi + +# Remove from pre-1.0.1 locations +rm -f /usr/sbin/gdisk +rm -f /usr/sbin/sgdisk +rm -f /usr/sbin/cgdisk +rm -rf /usr/share/doc/gdisk/ +rm -f /usr/share/man/man8/gdisk.8 +rm -f /usr/share/man/man8/sgdisk.8 +rm -f /usr/share/man/man8/cgdisk.8 + +# Remove from 1.0.1 (and later) locations +rm -f /usr/local/bin/gdisk +rm -f /usr/local/bin/sgdisk +rm -f /usr/local/bin/cgdisk +rm -rf /usr/local/doc/gdisk +rm -f /usr/local/man/man8/gdisk.8 +rm -f /usr/local/man/man8/sgdisk.8 +rm -f /usr/local/man/man8/cgdisk.8 + +echo "All GPT fdisk program files successfully removed!" + +# And finally, erase this script itself.... +rm -f /usr/local/bin/uninstall-gdisk