summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/busybox/files/simple.script
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/busybox/files/simple.script')
-rw-r--r--meta/recipes-core/busybox/files/simple.script3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/busybox/files/simple.script b/meta/recipes-core/busybox/files/simple.script
index 27368f0ee5..69739850d8 100644
--- a/meta/recipes-core/busybox/files/simple.script
+++ b/meta/recipes-core/busybox/files/simple.script
@@ -10,7 +10,8 @@ RESOLV_CONF="/etc/resolv.conf"
# return 0 if root is mounted on a network filesystem
root_is_nfs() {
- grep -qe '^/dev/root.*\(nfs\|smbfs\|ncp\|coda\) .*' /proc/mounts
+ sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
+ grep -q "^/ \(nfs\|smbfs\|ncp\|coda\)$"
}
have_bin_ip=0