Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netcardconfig: Run ifdown immediately before configuring the network … #10

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sbin/netcardconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Filename: grml-network
# Filename: netcardconfig
# Purpose: configuration script for network
# Authors: Michael Prokop <[email protected]>, Marcel Wichern 2006, Klaus Knopper 2002, Niall Walsh + Stefan Lippers-Hollmann 2004-2007
# Bug-Reports: see http://grml.org/bugs/
Expand Down Expand Up @@ -188,8 +188,7 @@ configiface() {
DEVICE=${NETDEVICES[$DV]}
device2props
DV=$DEVICENAME
ifdown "${DV}" --force
sleep 3

# INTERACTIVE=true
if "${INTERACTIVE}" ; then
# Setup wireless options?
Expand Down Expand Up @@ -712,6 +711,7 @@ while (true); do
IFACEDONE=""
while [ -n "$DV" ] && [ -z "$IFACEDONE" ]; do
configiface "${METHOD}" "${IPADDR}" "${NETMASK}" "${GATEWAY}" "${DNS}"
ifdown "${DV}" --force
if ! ifup $DV; then
if "${INTERACTIVE}" ; then
$DIALOG --yesno "$MESSAGE14" 15 50 || IFACEDONE="DONE"
Expand Down