diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-11-20 09:50:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-21 16:46:15 +0000 |
commit | e1abae623a6b3afcb29f325220cc79453efb4e77 (patch) | |
tree | 9dcd123059066af6095730303d8af662efc11cbc /meta/recipes-core/netbase/netbase-4.46/nfsroot | |
parent | 402c23e9823d186112e8509d3eecb0d64bfa7ec7 (diff) | |
download | openembedded-core-e1abae623a6b3afcb29f325220cc79453efb4e77.tar.gz openembedded-core-e1abae623a6b3afcb29f325220cc79453efb4e77.tar.bz2 openembedded-core-e1abae623a6b3afcb29f325220cc79453efb4e77.tar.xz openembedded-core-e1abae623a6b3afcb29f325220cc79453efb4e77.zip |
netbase: Update recipe 4.46 -> 4.47
moreover 4.46 tar is not available on debian pools
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/netbase/netbase-4.46/nfsroot')
-rw-r--r-- | meta/recipes-core/netbase/netbase-4.46/nfsroot | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/meta/recipes-core/netbase/netbase-4.46/nfsroot b/meta/recipes-core/netbase/netbase-4.46/nfsroot deleted file mode 100644 index 750c0a98f..000000000 --- a/meta/recipes-core/netbase/netbase-4.46/nfsroot +++ /dev/null @@ -1,39 +0,0 @@ -#! /bin/sh - -# In case the interface is used as nfsroot, avoid ifup, otherwise -# nfsroot may lose response - -nfsroot=0 - -if test "x$IFACE" = xlo ; then - exit 0 -fi - -exec 9<&0 < /proc/mounts -while read dev mtpt fstype rest; do - if test $mtpt = "/" ; then - case $fstype in - nfs | nfs4) - nfsroot=1 - nfs_addr=`echo $rest | sed -e 's/^.*addr=\([0-9.]*\).*$/\1/'` - break - ;; - *) - ;; - esac - fi -done -exec 0<&9 9<&- - -test $nfsroot -eq 0 && exit 0 - -if [ -x /bin/ip -o -x /sbin/ip ] ; then - nfs_iface=`ip route get $nfs_addr | grep dev | sed -e 's/^.*dev \([-a-z0-9.]*\).*$/\1/'` -fi - -if test "x$IFACE" = "x$nfs_iface" ; then - echo "ifup skipped for nfsroot interface $nfs_iface" - exit 1 -fi - -exit 0 |