aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/initscripts/initscripts-1.0/openprotium/umountinitrd.sh
blob: 12cf7c604c3cb3a4e49f4523dd87d1f6672b482b (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