cf1d119513
numbering while not breaking 4.x compatibility: - Stop using device nodes in /usr/compat/linux/dev and instead rely on the linuxaltor passing though to /dev - Create needed device nodes in /dev (on 4.x) - Account for a change in falloc's semantics that was preventing the vmmon module from being unloaded on 5.1+ machines.
29 lines
873 B
Bash
29 lines
873 B
Bash
#!/bin/sh
|
|
|
|
echo Setup Linux compatible /dev directory
|
|
linux_dev=${LINUXBASE}/dev
|
|
if [ ! -d $linux_dev ]; then
|
|
echo Creating $linux_dev
|
|
mkdir $linux_dev
|
|
chown root:wheel $linux_dev
|
|
chmod 755 $linux_dev
|
|
fi
|
|
echo Creating $linux_dev/tty\?
|
|
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`;
|
|
done
|
|
ln -fs /dev/ttyva ${linux_dev}/tty11
|
|
ln -fs /dev/ttyvb ${linux_dev}/tty12
|
|
ln -fs ${linux_dev}/tty1 ${linux_dev}/tty0
|
|
echo Creating vmmon node
|
|
mknod /dev/vmmon c 200 0
|
|
echo Creating vmnet1 node
|
|
mknod /dev/vmnet1 c 149 ${VMNET1_MINOR}
|
|
echo Creating $linux_dev/hd\?
|
|
mknod ${linux_dev}/hda b 0 0x00010002
|
|
mknod ${linux_dev}/hdb b 0 0x0001000a
|
|
# Do not enable below, because vmware-wizard is locked when
|
|
# doing something like access("/dev/hdc"...)
|
|
#mknod ${linux_dev}/hdc b 0 0x00010012
|
|
#mknod ${linux_dev}/hdd b 0 0x0001001a
|
|
echo Done
|