diff options
author | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-12 15:14:08 +0000 |
---|---|---|
committer | Paul Sokolovsky <pmiscml@gmail.com> | 2008-02-12 15:14:08 +0000 |
commit | f5201f61e5ef7c839f1deb992fa89c579f27e588 (patch) | |
tree | cd8a86687142a7ee1b08210ee6dcd104933e48b5 /packages/netbase | |
parent | 5e20762710bc6192195a5a771d4fae5a32339f3b (diff) | |
parent | 4337f518ff1eef5452e10b7ee9f4dc48010048f1 (diff) |
merge of '9a8a930122d29384549135ea3382884efdb4000e'
and 'a0976fae9659c5e0c23233eaa6f5a6e777a1a044'
Diffstat (limited to 'packages/netbase')
-rw-r--r-- | packages/netbase/netbase/slugos/if-pre-up.d/test-nfsroot | 10 | ||||
-rw-r--r-- | packages/netbase/netbase_4.21.bb | 2 |
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 |