|
From: Heiko Z. <smi...@us...> - 2007-11-25 15:15:37
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs12.sourceforge.net:/tmp/cvs-serv3634/scripts Added Files: open-vm-tools Log Message: added open-vm-tools (install doesn't work yet) --- NEW FILE: open-vm-tools --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/open-vm-tools,v $ # $Revision: 1.2 $ # $Date: 2007/11/25 15:15:31 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: open-vm-tools # 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_OPEN_VM_TOOLS" = "y" ]; then CC="gcc -U_FORTIFY_SOURCE -fno-PIE" LDFLAGS=-liconv ./configure --prefix=/usr --without-x || exit 1 make all modules || exit 1 fi ;; install ) if [ "$CONFIG_OPEN_VM_TOOLS" = "y" ]; then cp -dpvR libguestlib/.libs/libguestlib.so* $CDDIR/usr/lib/ || exit 1 exit 1 mkdir -p $CDDIR/lib/modules/$KERNELVERSION/misc/ || exit 1 cp -v vmmemctl-$KERNELVERSION $CDDIR/lib/modules/$KERNELVERSION/misc/vmmemctl.o || exit 1 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 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/ || 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=no" >> $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 |