mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
8b3cd773ff
This is only a cosmetic change, so there's no need to reinstall your installation(s).
30 lines
881 B
Bash
30 lines
881 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 -s /dev/ttyva ${linux_dev}/tty11
|
|
ln -s /dev/ttyvb ${linux_dev}/tty12
|
|
ln -s ${linux_dev}/tty1 ${linux_dev}/tty0
|
|
mknod ${linux_dev}/null c 2 2
|
|
chmod 666 ${linux_dev}/null
|
|
echo Creating vmnet1 node
|
|
mknod /compat/linux/dev/vmnet1 c 149 65537
|
|
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
|