optionally run mkinitcpio when editing mkinitcpio.conf;

https://github.com/Chrysostomus/manjaro-architect/issues/35
merge-requests/273/head
Bernhard Landauer 8 years ago
parent 00fd37940b
commit 27515a0992

@ -357,6 +357,12 @@ edit_configs() {
if [[ $FILE != "" ]]; then
nano $FILE
if [[ $FILE="${MOUNTPOINT}/etc/mkinitcpio.conf" ]]; then
dialog --backtitle "$VERSION - $SYSTEM ($ARCHI)" --yesno "${_MMRunMkinit}?" 0 0 && {
run_mkinitcpio 2>$ERR
check_for_error "run_mkinitcpio" "$?" edit_configs
}
fi
else
DIALOG " $_ErrTitle " --msgbox "$_SeeConfErrBody" 0 0
fi

Loading…
Cancel
Save