#!/bin/sh

mkdir -p dev
mknod dev/console c 4 0
mknod dev/fd0 b 2 0
mknod dev/mem c 1 1
mknod dev/null c 1 3
mknod dev/ptysf c 2 63
mknod dev/ram b 1 1
mknod dev/systty c 4 0
mknod dev/tty0 c 4 0
mknod dev/tty1 c 4 1
mknod dev/tty2 c 4 2
mknod dev/tty3 c 4 3
mknod dev/tty4 c 4 4
mknod dev/tty5 c 4 5
mknod dev/tty6 c 4 6
mknod dev/ttysf c 3 63
find dev/ | grep -v CVS | xargs chown root:root
chown root:root dev/*
chmod 644 dev/*
chmod a+x dev/CVS
ln -s sbin bin
ln -sf sbin/init linuxrc
ln -sf /proc/mounts etc/mtab
ln -sf /lib/modules/2.0.33/pcmcia/ds.o modules/ds.o
ln -sf /lib/modules/2.0.33/pcmcia/i82365.o modules/i82365.o
ln -sf /lib/modules/2.0.33/pcmcia/pcmcia_core.o modules/pcmcia_core.o
ln -sf /lib/modules/2.0.33/pcmcia/tcic.o modules/tcic.o
ln -sf insmod sbin/rmmod
ln -sf /usr/bin/sh sbin/sh

