X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/49b34728f956238c5fdbec568be0247fb8be95c6..cc7c03a97022c627dac8e4aefb415081722119a5:/target/linux/ifxmips/nfs/base-files/etc/preinit.arch diff --git a/target/linux/ifxmips/nfs/base-files/etc/preinit.arch b/target/linux/ifxmips/nfs/base-files/etc/preinit.arch index 61662bc21..7ee8e3e34 100755 --- a/target/linux/ifxmips/nfs/base-files/etc/preinit.arch +++ b/target/linux/ifxmips/nfs/base-files/etc/preinit.arch @@ -1,3 +1,5 @@ -echo "- init nfs -" -exec /sbin/init +grep "/dev/root" /proc/mounts |grep -q nfs && { + echo "- init nfs -" + exec /sbin/init +}