merge of '07a342693675fe2b1daacf0eb62302579d9fade3'
[org.openembedded.dev.git] / packages / initscripts / initscripts-1.0 / openprotium / umountinitrd.sh
blob6ee0d50e8488345161bb4470f21365acceee5d6e
1 #!/bin/sh
2 # umount the static dev - we'd probably never use it.
4 [ -d /dev/.static/dev ] && umount /dev/.static/dev
5 #
6 # if a root is found on an ext* filesystem, umount the old initrd
7 #
8 grep -q "/ ext" /proc/mounts
9 if [ $? -eq 0 ]; then
10 umount /initrd