aboutsummaryrefslogtreecommitdiffstats
path: root/create_arm_img_urpmi.sh
diff options
context:
space:
mode:
authorDaniel Tartavel <contact@librepc.com>2018-07-21 13:02:00 +0200
committerDaniel Tartavel <contact@librepc.com>2018-07-21 13:02:00 +0200
commita6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722 (patch)
treee7ccc51f4a86086e3d50cae6f1527cf7e809e00c /create_arm_img_urpmi.sh
parenta4d5ba62acdf6df9423d565d03993afb02a2e0fb (diff)
downloadmageia4arm-a6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722.tar
mageia4arm-a6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722.tar.gz
mageia4arm-a6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722.tar.bz2
mageia4arm-a6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722.tar.xz
mageia4arm-a6b2f99e2c45ff19e4dc54a0ffff3f9abe1ec722.zip
- modified name of config file conflicting with raspberry pi config.txt
- update README.md to follow changes - update create_arm_img_urpmi.sh to follow changes
Diffstat (limited to 'create_arm_img_urpmi.sh')
-rwxr-xr-xcreate_arm_img_urpmi.sh14
1 files changed, 7 insertions, 7 deletions
diff --git a/create_arm_img_urpmi.sh b/create_arm_img_urpmi.sh
index b0770ba..c440184 100755
--- a/create_arm_img_urpmi.sh
+++ b/create_arm_img_urpmi.sh
@@ -636,16 +636,16 @@ if ! [ -d "$SOURCE_PATH/$CONFIG_PATH" ];then
fi
if [ -d "$SOURCE_PATH/$CONFIG_PATH" ];then
- if [ -e "$SOURCE_PATH/$CONFIG_PATH/config.txt" ];then
- info "using $SOURCE_PATH/$CONFIG_PATH/config.txt as config"
- . "$SOURCE_PATH/$CONFIG_PATH/config.txt"
+ if [ -e "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg" ];then
+ info "using $SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg as config"
+ . "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg"
else
warning "Config file does not exists, do you want i copy template ? [Y|n] "
read yn
if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then
- /usr/bin/cp "$SOURCE_PATH/config.txt.template" "$SOURCE_PATH/$CONFIG_PATH/config.txt"
+ /usr/bin/cp "$SOURCE_PATH/mageia4arm.cfg.template" "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg"
fi
- warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/config.txt) and relaunch the script"
+ warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script"
exit 1
fi
else
@@ -653,8 +653,8 @@ else
read yn
if [ -z $yn ] || [ $yn = "Y" ] || [ $yn = "y" ];then
/usr/bin/mkdir "$SOURCE_PATH/$CONFIG_PATH/"
- /usr/bin/cp "$SOURCE_PATH/config.template" "$SOURCE_PATH/$CONFIG_PATH/config.txt"
- warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/config.txt) and relaunch the script"
+ /usr/bin/cp "$SOURCE_PATH/config.template" "$SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg"
+ warning "You need now to modify the config file ($SOURCE_PATH/$CONFIG_PATH/mageia4arm.cfg) and relaunch the script"
exit
fi
fi