1
1
mirror of https://schlomp.space/tastytea/hashboot synced 2024-11-16 14:37:06 +01:00

fixed config writing

This commit is contained in:
tastytea 2015-09-29 20:28:04 +02:00
parent 84ffb6cbd7
commit 4b7a713b4d

@ -70,11 +70,11 @@ then
fi fi
#If not found, create one and ask for ${MBR_DEVICE} #If not found, create one and ask for ${MBR_DEVICE}
else else
echo "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"
echo "#Device with the MBR on it" > ${CONFIG_FILE} echo "#Device with the MBR on it" > ${CONFIG_FILE}
echo "mbr_device = ${MBR_DEVICE}" echo "mbr_device = ${MBR_DEVICE}" >> ${CONFIG_FILE}
fi fi
#Write header #Write header