mirror of https://schlomp.space/tastytea/hashboot
Merge pull request #8 from tastytea/fail-no-config
Fail if no config file is found and the program is not run interactivelypull/9/head
commit
cd1afbf6b8
7
hashboot
7
hashboot
|
@ -148,12 +148,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "#Device with the MBR on it" > ${CONFIG_FILE}
|
die 9 "No config file found. Run hashboot interactively to generate one."
|
||||||
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}
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue