From eb4c34f6ef245cb7d1a28f0c63bb3c7d037fb549 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krizs=C3=A1n=20P=C3=A9ter?= Date: Thu, 21 Nov 2024 15:50:58 +0100 Subject: [PATCH] Check and delete old blfs config if any --- lfsSetup.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lfsSetup.sh b/lfsSetup.sh index 3f7158a..5ac8280 100755 --- a/lfsSetup.sh +++ b/lfsSetup.sh @@ -317,9 +317,12 @@ make EOF # Create new blfs config -cd "$1/home/pkr/blfs_root" -rm -fv configuration -cat > configuration << EOF +DIR_BLFSCFG="$1/home/pkr/blfs_root/configuration" +if [ -f "$DIR_BLFSCFG" ] ; then + sudo rm -fv "$DIR_BLFSCFG" +fi + +cat > "$DIR_BLFSCFG" << EOF CONFIG_pciutils=y CONFIG_twm=y CONFIG_xinit=y