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 umount /mnt 2>/dev/null || {
8 # need the device for a remount
9 . /etc/default/functions
11 ffsdev="$(mtblockdev $ffspart)"
12 if test -n "$ffsdev" -a -b "$ffsdev"
14 mount -o remount,ro "$ffsdev" /initrd
16 echo "Flashdisk: $ffsdev: flash device not found" >&2