2000-01-26 22:06:13 +00:00
|
|
|
#!/bin/sh
|
2000-03-25 20:24:32 +00:00
|
|
|
|
|
|
|
echo Setup Linux compatible /dev directory
|
2000-01-26 22:06:13 +00:00
|
|
|
linux_dev=${LINUX_DIR}/dev
|
2000-03-25 20:24:32 +00:00
|
|
|
if [ ! -d $linux_dev ]; then
|
|
|
|
echo Creating $linux_dev
|
|
|
|
mkdir $linux_dev
|
|
|
|
chown root:wheel $linux_dev
|
|
|
|
chmod 755 $linux_dev
|
2000-01-26 22:06:13 +00:00
|
|
|
fi
|
|
|
|
echo Creating $linux_dev/tty\?
|
2000-03-25 20:24:32 +00:00
|
|
|
for n in 0 1 2 3 4 5 6 7 8 9; do
|
|
|
|
ln -s /dev/ttyv$n $linux_dev/tty`expr 1 + $n`;
|
2000-01-26 22:06:13 +00:00
|
|
|
done
|
|
|
|
ln -s /dev/ttyva ${linux_dev}/tty11
|
|
|
|
ln -s /dev/ttyvb ${linux_dev}/tty12
|
|
|
|
ln -s ${linux_dev}/tty1 ${linux_dev}/tty0
|
|
|
|
echo Creating $linux_dev/hd\?
|
|
|
|
mknod ${linux_dev}/hda b 0 0x00010002
|
|
|
|
mknod ${linux_dev}/hdb b 0 0x0001000a
|
2000-03-25 20:24:32 +00:00
|
|
|
# Do not enable below, because vmware-wizard is locked when
|
2000-01-26 22:06:13 +00:00
|
|
|
# doing something like access("/dev/hdc"...)
|
|
|
|
#mknod ${linux_dev}/hdc b 0 0x00010012
|
|
|
|
#mknod ${linux_dev}/hdd b 0 0x0001001a
|
|
|
|
echo Done
|