1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/emulators/vmware/scripts/pre-install
Akinori MUSHA 9225c521c3 - Clean up and minor fixes
- Make portlint satisfy
  - Avoid creating files out of WRKDIR
  - Remove the void directory "patch" (What ever was this?)
  - Adjust whitespace
  - Fix some ungrammatical wordings
  - Modify COMMENT and DESCR
- Drop fakeprocfs support due to the import of Linux procfs to the base system
- Show MESSAGE after installation
- Change maintainer to the -emulation list because:
  - Vladimir seems too busy or unreachable these days
  - This port depends very much on Linux compatibility stuff
- Get it to check if the system has Linux procfs module and stop if not

PR:		ports/16960 (add WWW to DESCR)
No response by:	maintainer
2000-03-25 20:24:32 +00:00

26 lines
754 B
Bash

#!/bin/sh
echo Setup Linux compatible /dev directory
linux_dev=${LINUX_DIR}/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
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