From fa6d19974ab279c5bd87535cea0c139f2a9a1392 Mon Sep 17 00:00:00 2001
From: "Alan J. Pippin" <ajp@pippins.net>
Date: Thu, 25 Sep 2008 15:36:36 -0600
Subject: [PATCH] Renamed all references from USB to EXT

---
 zfs-replicate-wrapper                      | 6 +++---
 zfs-scrub-usb-drive => zfs-scrub-ext-drive | 8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)
 rename zfs-scrub-usb-drive => zfs-scrub-ext-drive (89%)

diff --git a/zfs-replicate-wrapper b/zfs-replicate-wrapper
index 5e4e44a..1f21c5e 100755
--- a/zfs-replicate-wrapper
+++ b/zfs-replicate-wrapper
@@ -21,7 +21,7 @@ cleanup() {
   rm -rf "$lockdir"
   if [ $released_lock_date == 0 ]; then 
     zpool export $destpool
-    /usr/local/etc/bin/usb-drive-power off
+    /usr/local/etc/bin/ext-drive-power off
     echo `date` ZFS admin lock released >> $logfile
   fi
   exit
@@ -54,7 +54,7 @@ date=`date`;
 echo "$date ZFS admin lock obtained" >> $logfile
 
 # Poweron the destpool and import it
-/usr/local/etc/bin/usb-drive-power on >> $logfile
+/usr/local/etc/bin/ext-drive-power on >> $logfile
 zpool import $destpool
 
 # List the filesystems to replicate
@@ -73,7 +73,7 @@ $replicate tank/backup $destpool
 
 # Export the destpool and power it down
 zpool export $destpool
-/usr/local/etc/bin/usb-drive-power off >> $logfile
+/usr/local/etc/bin/ext-drive-power off >> $logfile
 
 # Release our lock
 released_lock_date=1
diff --git a/zfs-scrub-usb-drive b/zfs-scrub-ext-drive
similarity index 89%
rename from zfs-scrub-usb-drive
rename to zfs-scrub-ext-drive
index 6136fab..d9a54aa 100755
--- a/zfs-scrub-usb-drive
+++ b/zfs-scrub-ext-drive
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 # Author: Alan J. Pippin
-# Description: This script will attempt to scrub a given USB drive
+# Description: This script will attempt to scrub a given EXT drive
 #              This script ensures that only 1 scrub operation is 
 #              running at any given time. This serializes the zfs 
 #              scrub process for any pool.
@@ -29,7 +29,7 @@ do
 
   date=`date`
   echo "$date: Scrub started for zfs pool $i" >> $logfile
-  /usr/local/etc/bin/usb-drive-power on >> /dev/null
+  /usr/local/etc/bin/ext-drive-power on >> /dev/null
   /sbin/zpool import $i
   /sbin/zpool scrub $i
 
@@ -57,9 +57,9 @@ do
     /sbin/zpool status $i | /usr/bin/mailx -s "zpool scrub $i found errors" $mailto 
   fi 
 
-  # Power off the USB drive
+  # Power off the EXT drive
   /sbin/zpool export $i
-  /usr/local/etc/bin/usb-drive-power off >> /dev/null
+  /usr/local/etc/bin/ext-drive-power off >> /dev/null
 
 done
 
-- 
2.34.1