Skip to content

Commit cf6ddff

Browse files
authored
install.sh: fix interface usage in netplan
1 parent fead187 commit cf6ddff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ setup_bridge() {
8686

8787
interface=$(find /sys/class/net -type l -not -lname '*virtual*' -printf '%f\n' | sort | head -1)
8888
gateway=$(ip route show 0.0.0.0/0 dev $interface | cut -d ' ' -f 3)
89-
hostipandsub=$(ip -4 -br addr show ens192 | awk '{ print $3; }' )
90-
info "Setting up bridge on $interface which has IP $hostip and gateway $gateway"
89+
hostipandsub=$(ip -4 -br addr show $interface | awk '{ print $3; }' )
90+
info "Setting up bridge on $interface which has IP $hostipandsub and gateway $gateway"
9191

9292
cat << EOF > /etc/netplan/01-netcfg.yaml
9393
network:

0 commit comments

Comments
 (0)