diff options
Diffstat (limited to 'target/linux/ifxmips/nfs/base-files')
-rwxr-xr-x | target/linux/ifxmips/nfs/base-files/etc/preinit.arch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/target/linux/ifxmips/nfs/base-files/etc/preinit.arch b/target/linux/ifxmips/nfs/base-files/etc/preinit.arch index 61662bc21d..7ee8e3e346 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 +} |