summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/fs
blob: 75ae760e011182e97bfc5a607e3830a9e3cf11cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh
#INIT 60
[[ $1 = autostart ]] || exit 0

# mount net filesystems (nfs/cifs)
grep nfs /proc/filesystems  >/dev/null 2>&1
if [ $? -eq 0 ];then
	grep -v "^#" /etc/fstab| grep nfs >/dev/null 2>&1
	if [ $? -eq 0 ];then
		mount -a -t nfs
	fi
fi
grep cifs /proc/filesystems  >/dev/null 2>&1
if [ $? -eq 0 ];then
	grep -v "^#" /etc/fstab| grep cifs >/dev/null 2>&1
	if [ $? -eq 0 ];then
		mount -a -t cifs
	fi
fi
exit 0