aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ifxmips/nfs/base-files
diff options
context:
space:
mode:
authorThomas Langer <thomas.langer@lantiq.com>2008-12-16 14:07:55 +0000
committerThomas Langer <thomas.langer@lantiq.com>2008-12-16 14:07:55 +0000
commit7570eebcdd5628978cbdbab2fb7cb99abbc62360 (patch)
tree46e045fd88294505c849b475f46e1556278ae300 /target/linux/ifxmips/nfs/base-files
parente7336673b14fe311ae493eee86ba8983792bcf02 (diff)
downloadupstream-7570eebcdd5628978cbdbab2fb7cb99abbc62360.tar.gz
upstream-7570eebcdd5628978cbdbab2fb7cb99abbc62360.tar.bz2
upstream-7570eebcdd5628978cbdbab2fb7cb99abbc62360.zip
cleanup sources and prepare for 2.6.27
SVN-Revision: 13660
Diffstat (limited to 'target/linux/ifxmips/nfs/base-files')
-rwxr-xr-xtarget/linux/ifxmips/nfs/base-files/etc/preinit.arch6
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
+}