X-Git-Url: https://git.sur5r.net/?p=bacula%2Frescue;a=blobdiff_plain;f=rescue%2Flinux%2Fusb%2Fwrite_disk_info_to_usb;fp=rescue%2Flinux%2Fusb%2Fwrite_disk_info_to_usb;h=0000000000000000000000000000000000000000;hp=b5374b3cb00d4773f1117569ab86e71168a4f762;hb=fb21b5066e01a80263767f2406829a10dfa58303;hpb=0a3515b92eb06f0fee16cee0f189ae5aa83b4414 diff --git a/rescue/linux/usb/write_disk_info_to_usb b/rescue/linux/usb/write_disk_info_to_usb deleted file mode 100755 index b5374b3..0000000 --- a/rescue/linux/usb/write_disk_info_to_usb +++ /dev/null @@ -1,39 +0,0 @@ -#!/bin/sh -# -# write the disk info from the current system to the USB -# stick. We write it in the home-rw partition -# -. ./config - -if [ ! `whoami` = "root" ] ; then - echo "" - echo "You need to be root to run this shell script" - echo "" - exit 1 -fi - -echo " " -echo "This script will write your current system information to the USB" -echo "stick in the home-rw partition (/home/ubuntu)" - -if [ ! -d ${MOUNT_POINT}/home-rw ] ; then - mount ${USB_DEV}3 ${MOUNT_POINT}/home-rw -fi -if [ ! -d ${MOUNT_POINT}/home-rw ] ; then - echo "Mount of home-rw USB partition failed." - echo "Please pre-mount the USB stick and run this script again." - exit 1 -fi -cd ${MOUNT_POINT}/home-rw -if [ $? -ne 0 ] ; then - echo "Could not cd to home-rw USB partition" - exit 1 -fi - -mkdir -p ubuntu -chown 1000:1000 ubuntu -cd ubuntu -export USB_DEV -${CWD}/getdiskinfo -cp -f ${CWD}/write_disk_info_to_usb . -sync