patch-2.1.23 linux/fs/nfs/nfsroot.c

Next file: linux/fs/nfs/rpcsock.c
Previous file: linux/fs/nfs/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.22/linux/fs/nfs/nfsroot.c linux/fs/nfs/nfsroot.c
@@ -172,7 +172,10 @@
 
 	last = &open_base;
 	for (dev = dev_base; dev != NULL; dev = dev->next) {
-		if (dev->type < ARPHRD_SLIP &&
+		if (
+#if !CONFIG_AP1000
+		    dev->type < ARPHRD_SLIP &&
+#endif
 		    dev->family == AF_INET &&
 		    !(dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) &&
 		    (0 != strncmp(dev->name, "dummy", 5)) &&
@@ -1289,6 +1292,9 @@
 		num++;
 	}
 	rarp_serv = server;
+#if CONFIG_AP1000
+	ap_nfs_hook(server.sin_addr.s_addr);
+#endif				
 }
 
 static int root_nfs_add_default_route(struct in_addr gw, struct device *dev)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov