mirror of https://schlomp.space/tastytea/hashboot
small config changes
parent
79bb8de0c9
commit
7ac513a9c5
9
hashboot
9
hashboot
|
@ -17,8 +17,8 @@ PATH="/bin:/usr/bin:/sbin:/usr/sbin:${PATH}"
|
||||||
DIGEST_FILE="/var/lib/hashboot.digest"
|
DIGEST_FILE="/var/lib/hashboot.digest"
|
||||||
DIGEST_FILE_TMP="/tmp/hashboot.digesttmp"
|
DIGEST_FILE_TMP="/tmp/hashboot.digesttmp"
|
||||||
LOG_FILE="/tmp/hashboot.log"
|
LOG_FILE="/tmp/hashboot.log"
|
||||||
MBR_DEVICE=""
|
MBR_DEVICE="/dev/sda"
|
||||||
MBR_SIZE=0
|
MBR_SIZE=1024
|
||||||
MBR_TMP="/tmp/mbr"
|
MBR_TMP="/tmp/mbr"
|
||||||
BACKUP_FILE="/var/cache/boot-backup.tar.gz"
|
BACKUP_FILE="/var/cache/boot-backup.tar.gz"
|
||||||
HASHER=""
|
HASHER=""
|
||||||
|
@ -74,11 +74,10 @@ else
|
||||||
if [ -z "$PS1" ]
|
if [ -z "$PS1" ]
|
||||||
then
|
then
|
||||||
echo "#Device with the MBR on it" > ${CONFIG_FILE}
|
echo "#Device with the MBR on it" > ${CONFIG_FILE}
|
||||||
MBR_DEVICE="/dev/sda"
|
|
||||||
echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE}
|
echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE}
|
||||||
else
|
|
||||||
echo "#Where the Backup files are stored" >> ${CONFIG_FILE}
|
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] "
|
echo -n "Which device contains the MBR? [/dev/sda] "
|
||||||
read -r MBR_DEVICE
|
read -r MBR_DEVICE
|
||||||
[ -z "${MBR_DEVICE}" ] && MBR_DEVICE="/dev/sda"
|
[ -z "${MBR_DEVICE}" ] && MBR_DEVICE="/dev/sda"
|
||||||
|
|
Loading…
Reference in New Issue