summaryrefslogtreecommitdiff
path: root/packages/netbase
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-02-10 01:55:22 +0000
committerMike Westerhof <mwester@dls.net>2008-02-10 01:55:22 +0000
commitc066f95098df28fdd517dee575326d6aa6f5417f (patch)
tree68e88c85ee04fc95583ed1a208ab172ab6be5fc7 /packages/netbase
parentce51a7c1cdf92c7848ef5bca186d794bcaeba0bd (diff)
SlugOS: make "turnup nfs" work correctly with the new network driver (loads
firmware, and ensures we do not ifup the interface if the rootfs in nfs).
Diffstat (limited to 'packages/netbase')
-rw-r--r--packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot10
-rw-r--r--packages/netbase/netbase_4.21.bb2
2 files changed, 11 insertions, 1 deletions
diff --git a/packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot b/packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
new file mode 100644
index 0000000000..bbfd7d9bb3
--- /dev/null
+++ b/packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+if [ X"$IFACE" == "Xeth0" ] ; then
+ nfsroot=`grep ' / nfs ' /proc/mounts`
+ if [ -n "$nfsroot" ]; then
+ echo "WARNING: Refusing to ifup eth0 when booted to a nfs-mounted rootfs."
+ exit 1
+ fi
+fi
+exit 0
diff --git a/packages/netbase/netbase_4.21.bb b/packages/netbase/netbase_4.21.bb
index 1f2837a8c1..73e765376c 100644
--- a/packages/netbase/netbase_4.21.bb
+++ b/packages/netbase/netbase_4.21.bb
@@ -2,7 +2,7 @@ DESCRIPTION = "This package provides the necessary \
infrastructure for basic TCP/IP based networking."
SECTION = "base"
LICENSE = "GPL"
-PR = "r26"
+PR = "r27"
inherit update-rc.d