From ce6e2ce339fbdd13bf3d7050a5fbe17c286adb78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Mon, 25 Jan 2021 12:37:56 +0100 Subject: [PATCH] Changes related the way we get the default interface in the install script --- install.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 121b51d..883490b 100644 --- a/install.sh +++ b/install.sh @@ -306,13 +306,7 @@ cleaning() { check_interfaces(){ # Get the current connected interface name. - for iface in $IFACES; - do - config="$(ifconfig $iface)" - if echo "$config" | grep -q "inet "; then - ciface=$iface - fi - done + ciface="$(route | grep default | head -1 | grep -Eo '[a-z0-9]+$')" # Setup of iface_out which can be any interface, # but needs to be connected now or in the future.