Hi,

I am wondering why the variable $file isn't used within the loop inside
the ifstart function even though it was declared previously. Is there
some reason for that I am missing or did someone just overlooked it? ;-)

I tested (on i386) the changes below and it seems to work...

Michael


--- /etc/netstart.orig  Tue Aug 11 01:42:58 2009
+++ /etc/netstart       Sun Aug 23 21:54:10 2009
@@ -82,7 +82,7 @@
                        cmd="${af#*!} ${name} ${mask} ${bcaddr} ${ext1} ${ext2}"
                        ;;
                "bridge")
-                       cmd="echo /etc/hostname.$if: bridges now supported via 
bridgename.*
files"
+                       cmd="echo $file: bridges now supported via bridgename.* 
files"
                        ;;
                "dhcp")
                        [ "$name" = "NONE" ] && name=
@@ -124,7 +124,7 @@
                                ;;
                        esac
                        if [ ! -n "$name" ]; then
-                               echo "/etc/hostname.$if: invalid network 
configuration file"
+                               echo "$file: invalid network configuration file"
                                return
                        fi
                        case $af in
@@ -146,7 +146,7 @@
                        ;;
                esac
                eval "$cmd"
-       done < /etc/hostname.$if
+       done < $file
 }

 # Start multiple:

Reply via email to