Le support aux utilisateurs et les demandes de création de comptes externes doivent être faites depuis les issues du projet GitLab HEFR (https://gitlab.forge.hefr.ch/forge-hefr/gitlab-hefr)

Commit bbb53ab9 authored by papauxg's avatar papauxg
Browse files

ask before erasing custom kernel .config

parent 9961ac6f
......@@ -47,10 +47,24 @@ function kernel_fetch() {
}
function kernel_configure() {
if [[ -e ".config" ]]
then
echo
echo "A .config file already exists in linux source directory."
read -p "Do you want to restore the default kernel configuration (your modifications will be lost) ? [y/n]: " -r
echo
if [[ ! $REPLY =~ ^[Yy]$ ]]
then
return
fi
fi
echo "Configuring kernel..."
# default config target set ?
if [[ ! -z "$KERNEL_DEFCONFIG" ]]
then
echo "Applying ${KERNEL_DEFCONFIG}..."
make ${KERNEL_DEFCONFIG}
fi
......@@ -58,6 +72,7 @@ function kernel_configure() {
# default config file set ?
if [[ ! -z "$KERNEL_CONFIG_FILE" ]]
then
echo "Copying ${KERNEL_CONFIG_FILE} configuration file.."
cp ../${KERNEL_CONFIG_FILE} .config
fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment