From 70ae214505f5d80739c428777dff32b610203ac0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sun, 24 Feb 2019 14:51:18 +0100 Subject: [PATCH] Fail if no config file is found and the program is not run interactively. --- hashboot | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hashboot b/hashboot index 7ac7d24..89aebfb 100755 --- a/hashboot +++ b/hashboot @@ -148,12 +148,7 @@ else fi else - echo "#Device with the MBR on it" > ${CONFIG_FILE} - echo "MBR_DEVICE=${MBR_DEVICE}" >> ${CONFIG_FILE} - echo "#Where the Backup files are stored" >> ${CONFIG_FILE} - echo "SAVEDIR=/var/lib/hashboot" >> ${CONFIG_FILE} - echo "#001=mbr,010=files,100=bios" >> ${CONFIG_FILE} - echo "CKMODES=$CKMODES" >> ${CONFIG_FILE} + die 9 "No config file found. Run hashboot interactively to generate one." fi fi