From 7ac513a9c56e1f7071a0c1858cec3921513ff43e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 4 Oct 2015 20:31:50 +0200 Subject: [PATCH] small config changes --- hashboot | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hashboot b/hashboot index 1f7a939..ebefc5b 100755 --- a/hashboot +++ b/hashboot @@ -17,8 +17,8 @@ PATH="/bin:/usr/bin:/sbin:/usr/sbin:${PATH}" DIGEST_FILE="/var/lib/hashboot.digest" DIGEST_FILE_TMP="/tmp/hashboot.digesttmp" LOG_FILE="/tmp/hashboot.log" -MBR_DEVICE="" -MBR_SIZE=0 +MBR_DEVICE="/dev/sda" +MBR_SIZE=1024 MBR_TMP="/tmp/mbr" BACKUP_FILE="/var/cache/boot-backup.tar.gz" HASHER="" @@ -74,11 +74,10 @@ else if [ -z "$PS1" ] then echo "#Device with the MBR on it" > ${CONFIG_FILE} - MBR_DEVICE="/dev/sda" echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE} - else echo "#Where the Backup files are stored" >> ${CONFIG_FILE} - echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE} + echo "BACKUP_FILE=${BACKUP_FILE}" >> ${CONFIG_FILE} + else echo -n "Which device contains the MBR? [/dev/sda] " read -r MBR_DEVICE [ -z "${MBR_DEVICE}" ] && MBR_DEVICE="/dev/sda"