#!/bin/sh -e
# make /dev/MAKEDEV operate on the real /dev
# credit for this hack goes to ElectricElf

if [ "`pwd`" = /dev ] && mountpoint -q /etc/udev/.dev/; then
  cd /etc/udev/.dev/
fi

exec /sbin/MAKEDEV "$*"

