mirror of
https://github.com/Le0xFF/VoidLinuxInstaller.git
synced 2024-09-11 18:47:17 +03:00
Do not copy wpa_supplicant.conf if NetworkManager is available
This commit is contained in:
parent
8ab6168984
commit
54c69db8f6
@ -1070,9 +1070,11 @@ function install_base_system_and_chroot {
|
||||
echo -e -n "\nCopying /etc/resolv.conf...\n"
|
||||
cp -L /etc/resolv.conf /mnt/etc/
|
||||
|
||||
echo -e -n "\nCopying /etc/wpa_supplicant/wpa_supplicant.conf...\n"
|
||||
cp -L /etc/wpa_supplicant/wpa_supplicant.conf /mnt/etc/wpa_supplicant/
|
||||
|
||||
if [[ ! -e /var/services/NetworkManager ]] ; then
|
||||
echo -e -n "\nCopying /etc/wpa_supplicant/wpa_supplicant.conf...\n"
|
||||
cp -L /etc/wpa_supplicant/wpa_supplicant.conf /mnt/etc/wpa_supplicant/
|
||||
fi
|
||||
|
||||
echo -e -n "\nChrooting...\n\n"
|
||||
read -n 1 -r -p "[Press any key to continue...]" key
|
||||
cp "${HOME}"/chroot.sh /mnt/root/
|
||||
|
Loading…
Reference in New Issue
Block a user