#!/bin/sh
mount -t spufs spufs /spu
modprobe binfmt_misc

if test -f /proc/sys/fs/binfmt_misc/spe
then
  echo -n "elfspe already registered"
else	
  echo ':spe:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17::/usr/bin/elfspe:' \
  >/proc/sys/fs/binfmt_misc/register
fi
