X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/49b34728f956238c5fdbec568be0247fb8be95c6..3b617e51ccb4e6e8fd00cbf15bf76a218776d6dd:/target/linux/ifxmips/nfs/base-files/etc/preinit.arch?ds=inline 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 +}