]> git.sur5r.net Git - bacula/rescue/commitdiff
Rename
authorKern Sibbald <kern@sibbald.com>
Fri, 2 Jan 2009 17:10:39 +0000 (17:10 +0000)
committerKern Sibbald <kern@sibbald.com>
Fri, 2 Jan 2009 17:10:39 +0000 (17:10 +0000)
rescue/linux/usb/partitionusb [deleted file]
rescue/linux/usb/partitionusbkey [new file with mode: 0755]

diff --git a/rescue/linux/usb/partitionusb b/rescue/linux/usb/partitionusb
deleted file mode 100755 (executable)
index 67cdb51..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/bin/sh
-#
-# Partition the USB stick -- the stick is assumed to be at least 3GB in size
-#
-# First delete all existing partitions
-#
-
-if [ ! `whoami` = "root" ] ; then
-  echo ""
-  echo "You need to be root to run this shell script"
-  echo ""
-  exit 1
-fi
-if [ "x$USB_DEVICE" = "x" ] ; then
-  if [ "x$1" = "x" ] ; then
-     echo "You must supply the USB device name on the command line or in USB_DEVICE"
-     exit 1
-  else
-     dev=$1
-  fi
-else
-  dev=$USB_DEVICE
-fi
-echo "This script will distroy everything on $dev"
-echo "Answer yes to continue "
-read a
-if [ "$a" != "yes" ] ; then
-  echo "Device $dev unchanged"
-  exit 1
-fi
-
-fdisk $dev <<EOF
-d
-4
-d
-3
-d
-2
-d
-1
-n
-p
-1
-
-+900M
-t
-1
-6
-a
-1
-n
-p
-2
-
-+1000M
-n
-p
-3
-
-
-p
-w
-EOF
-umount ${dev}1
-mkfs.vfat -F 16 -n kubuntu8 ${dev}1
-umount ${dev}2
-mkfs.ext2 -j -b 4096 -L casper-rw ${dev}2
-umount ${dev}3
-mkfs.ext2 -j -b 4096 -L home-rw ${dev}3
-sync
diff --git a/rescue/linux/usb/partitionusbkey b/rescue/linux/usb/partitionusbkey
new file mode 100755 (executable)
index 0000000..67cdb51
--- /dev/null
@@ -0,0 +1,70 @@
+#!/bin/sh
+#
+# Partition the USB stick -- the stick is assumed to be at least 3GB in size
+#
+# First delete all existing partitions
+#
+
+if [ ! `whoami` = "root" ] ; then
+  echo ""
+  echo "You need to be root to run this shell script"
+  echo ""
+  exit 1
+fi
+if [ "x$USB_DEVICE" = "x" ] ; then
+  if [ "x$1" = "x" ] ; then
+     echo "You must supply the USB device name on the command line or in USB_DEVICE"
+     exit 1
+  else
+     dev=$1
+  fi
+else
+  dev=$USB_DEVICE
+fi
+echo "This script will distroy everything on $dev"
+echo "Answer yes to continue "
+read a
+if [ "$a" != "yes" ] ; then
+  echo "Device $dev unchanged"
+  exit 1
+fi
+
+fdisk $dev <<EOF
+d
+4
+d
+3
+d
+2
+d
+1
+n
+p
+1
+
++900M
+t
+1
+6
+a
+1
+n
+p
+2
+
++1000M
+n
+p
+3
+
+
+p
+w
+EOF
+umount ${dev}1
+mkfs.vfat -F 16 -n kubuntu8 ${dev}1
+umount ${dev}2
+mkfs.ext2 -j -b 4096 -L casper-rw ${dev}2
+umount ${dev}3
+mkfs.ext2 -j -b 4096 -L home-rw ${dev}3
+sync