Changes related the way we get the default interface in the install script

This commit is contained in:
Félix Aime 2021-01-25 12:37:56 +01:00
parent f5213dbad1
commit ce6e2ce339

View File

@ -306,13 +306,7 @@ cleaning() {
check_interfaces(){ check_interfaces(){
# Get the current connected interface name. # Get the current connected interface name.
for iface in $IFACES; ciface="$(route | grep default | head -1 | grep -Eo '[a-z0-9]+$')"
do
config="$(ifconfig $iface)"
if echo "$config" | grep -q "inet "; then
ciface=$iface
fi
done
# Setup of iface_out which can be any interface, # Setup of iface_out which can be any interface,
# but needs to be connected now or in the future. # but needs to be connected now or in the future.