summaryrefslogtreecommitdiff
path: root/package/base-files/src/etc/init.d/umount
blob: bcd545999b4d1a0fef367e45d56434f697d615d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
#INIT 55

case $1 in
autostop)
	cd /
	sync
	for i in $(grep -v ^# /etc/fstab 2>/dev/null|awk '{ print $2 }');do
       	 umount $i 2>/dev/null
	done
	;;
esac
exit 0