source: trunk/target/linux/ifxmips/nfs/base-files/lib/preinit/01_init_nfs_ifxmips @ 19481

Last change on this file since 19481 was 19481, checked in by jow, 7 years ago

[ifxmips] preinit: use grep -q where applicable

File size: 158 bytes
Line 
1#!/bin/sh
2
3
4init_nfs() {
5        grep "/dev/root" /proc/mounts | grep -q nfs && {
6                echo "- init nfs -"
7                exec /sbin/init
8        }
9}
10
11boot_hook_add preinit_main init_nfs
12
Note: See TracBrowser for help on using the repository browser.