diff options
Diffstat (limited to 'target/linux/ifxmips/nfs/base-files/lib')
-rw-r--r-- | target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips b/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips new file mode 100644 index 000000000..e2cf52dc4 --- /dev/null +++ b/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips @@ -0,0 +1,12 @@ +#!/bin/sh + + +init_nfs() { + grep "/dev/root" /proc/mounts |grep -q nfs && { + echo "- init nfs -" + exec /sbin/init + } +} + +boot_hook_add preinit_main init_nfs + |