# This script is executed in initramfs.

if [ ! -z $1 ]; then
        NEW_ROOT=$1
else
        NEW_ROOT=
fi

if [ -d $NEW_ROOT/etc/emulator/prerun.d ]; then
  for i in $NEW_ROOT/etc/emulator/prerun.d/*.sh; do
    if [ -r $i ]; then
      . $i
    fi
  done
  unset i
fi

