|
From: Heiko Z. <smi...@us...> - 2006-06-08 15:38:43
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv8889/scripts Modified Files: Tag: rel-1-2-patches vmxnet Added Files: Tag: rel-1-2-patches vmware Log Message: added support to act as VMWare Guest OS (vmware daemon, vmmemctl & vmxnet) Index: vmxnet =================================================================== RCS file: /cvsroot/devil-linux/build/scripts/vmxnet,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -d -r1.1.2.1 -r1.1.2.2 --- vmxnet 5 Apr 2006 19:19:00 -0000 1.1.2.1 +++ vmxnet 8 Jun 2006 15:38:39 -0000 1.1.2.2 @@ -37,10 +37,6 @@ if [ "$CONFIG_VMWARE" = "y" ]; then mkdir -p $CDDIR/lib/modules/$KERNELVERSION/kernel/drivers/net/ || exit 1 cp -v vmxnet-$KERNELVERSION $CDDIR/lib/modules/$KERNELVERSION/kernel/drivers/net/vmxnet.o || exit 1 - echo "# Load VMWare drivers?" >> $CONFIGFILE - echo "START_VMWARE=no" >> $CONFIGFILE - echo >> $CONFIGFILE - echo "HELP_VMWARE=\"Load the vmware modules for better performance\"" >> $SOFTWAREHELP fi ;; --- NEW FILE: vmware --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/vmware,v $ # $Revision: 1.1.2.2 $ # $Date: 2006/06/08 15:38:39 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: vmware # Required-Start: $basebuildtools $libs linux # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_VMWARE" = "y" ]; then # nothing to be done here for now exit 0 fi ;; install ) if [ "$CONFIG_VMWARE" = "y" ]; then VMBINDIR=$(find_src_dir vmbin) cp -dpvR $VMBINDIR/{lib,sbin} $CDDIR/usr/ || exit 1 mkdir -p $ETCDIR/etc/vmware-tools || exit 1 cp -dpvR $VMBINDIR/etc/* $ETCDIR/etc/vmware-tools/ || exit 1 cp $MYDIR/scripts/vmware $ETCDIR/etc/init.d || exit 1 echo "# Load VMWare drivers?" >> $CONFIGFILE echo "# the driver will autodetect if we're running within a VM" >> $CONFIGFILE echo "# so you can safely leave this on" >> $CONFIGFILE echo "START_VMWARE=yes" >> $CONFIGFILE echo >> $CONFIGFILE echo "HELP_VMWARE=\"Load the vmware modules for better performance\"" >> $SOFTWAREHELP fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |