summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0/openprotium/umountinitrd.sh
blob: 6ee0d50e8488345161bb4470f21365acceee5d6e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh 
# umount the static dev - we'd probably never use it.
#
[ -d /dev/.static/dev ] && umount /dev/.static/dev                              
#                                                                               
# if a root is found on an ext* filesystem, umount the old initrd               
#                                                                               
grep -q "/ ext" /proc/mounts                                                    
if [ $? -eq 0 ]; then
	umount /initrd                                                  
fi