mirror of https://schlomp.space/tastytea/hashboot
fixed config writing
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
|
||||||
|
|
Loading…
Reference in New Issue