3 # umount /mnt, which is where the initrd ends up mounted
4 # if the directory /initrd is not present, if this fails
5 # then the /initrd is mounted and we want to remount that
6 # ro - this works round the shutdown -r hang problem
7 . /etc/default/functions
9 # if we are turnup'ed to disk, then just unmount the initrd all together
11 if [ -e /initrd/dev/.devfsd ]; then
12 [ "$VERBOSE" = "very" ] && echo "Unmounting initrd..."
18 while read device directory remainder
21 /mnt) echo "InitRD: unmount initrd on /mnt" >&2
23 /initrd)# need the device for a remount
25 ffsdev="$(mtblockdev $ffspart)"
26 echo "InitRD: remount $ffdev read-only on /initrd" >&2
27 if test -n "$ffsdev" -a -b "$ffsdev"
29 mount -o remount,ro "$ffsdev" /initrd
31 echo "Flashdisk: $ffsdev: flash device not found" >&2