From da1c649e0d2d9c2308274d8056d5f88b154427a9 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 20 Jun 2012 19:58:02 +0200 Subject: setup-interfaces: fix setting up bridge for xen dom0 --- setup-interfaces.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup-interfaces.in') diff --git a/setup-interfaces.in b/setup-interfaces.in index d8c7ff3..083cf03 100755 --- a/setup-interfaces.in +++ b/setup-interfaces.in @@ -59,7 +59,7 @@ get_default_addr() { # check if dhcpcd is running if pidof dhcpcd > /dev/null && [ -f "$ROOT/var/lib/dhcpc/dhcpcd-$1.info" ]; then echo dhcp - elif iface_exists; then + elif iface_exists $1; then ip addr show $1 | awk '/inet / {print $2}' | head -n 1 | sed 's:/.*::' fi } @@ -122,7 +122,7 @@ config_iface() { local answer= while [ -n "$ask_bridge" ] && ! is_bridge $iface; do - ask "Do you want to bridge the interface $iface?" no + ask "Do you want to bridge the interface $iface?" yes case "$resp" in yes|y) resp=yes; break;; no|n) break;; -- cgit v1.2.3