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
8 while read device directory remainder
11 /mnt) echo "InitRD: unmount initrd on /mnt" >&2
13 /initrd)# need the device for a remount
15 ffsdev="$(mtblockdev $ffspart)"
16 echo "InitRD: remount $ffdev read-only on /initrd" >&2
17 if test -n "$ffsdev" -a -b "$ffsdev"
19 mount -o remount,ro "$ffsdev" /initrd
21 echo "Flashdisk: $ffsdev: flash device not found" >&2