summaryrefslogtreecommitdiff
path: root/setup-interfaces.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-06-20 19:58:02 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-06-20 19:58:02 +0200
commitda1c649e0d2d9c2308274d8056d5f88b154427a9 (patch)
tree65053e66107022c303e2b8bcf4eeea394584e2a1 /setup-interfaces.in
parent34d9ecbc0740216026bb3c49d958183842a9f095 (diff)
downloadalpine-conf-da1c649e0d2d9c2308274d8056d5f88b154427a9.zip
setup-interfaces: fix setting up bridge for xen dom0
Diffstat (limited to 'setup-interfaces.in')
-rwxr-xr-xsetup-interfaces.in4
1 files changed, 2 insertions, 2 deletions
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;;