aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2012-04-05 04:08:33 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2012-04-05 04:08:33 +0000
commit3710570619cf6575e1ee119408e0bec3553864fe (patch)
treec081d2ab19f19c3b8a3962aa946ba6a384420ee1 /bootscripts
parentb0c8647eb333f4ff03a1423413e5cb28c4a62c15 (diff)
Change the location for the python gdb module
generated by gcc to the correct location. Fix a logic error in the ifdown script. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9805 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts')
-rwxr-xr-xbootscripts/lfs/sbin/ifdown3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootscripts/lfs/sbin/ifdown b/bootscripts/lfs/sbin/ifdown
index 9d556ebc8..15519c37a 100755
--- a/bootscripts/lfs/sbin/ifdown
+++ b/bootscripts/lfs/sbin/ifdown
@@ -93,7 +93,8 @@ link_status=`ip link show ${IFACE} 2>/dev/null`
if [ -n "${link_status}" ]; then
if [ "$(echo "${link_status}" | grep UP)" != "" ]; then
- if [ "$(ip addr show ${IFACE} | grep 'inet ')" != "" ]; then
+ # Set the interface down only if all IP addresses have been removed.
+ if [ "$(ip addr show ${IFACE} | grep 'inet ')" == "" ]; then
log_info_msg "Bringing down the ${IFACE} interface..."
ip link set ${IFACE} down
evaluate_retval