Listing 3. Example /linuxrc File

#! /bin/ash
if [ -s /etc/mdtab -a -f /sbin/mdadd ]
then
      echo "Preparing system for rootfs raid."
      /sbin/mdadd -ar
      /bin/mount -t proc /proc /proc
      echo 0x900 > /proc/sys/kernel/real-root-dev
      /bin/umount /proc
else
      echo "No mdtab or mdadd found."
fi