VirtualBox

Changeset 301 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 25, 2007 2:42:44 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
17848
Message:

Rewrote the additions installer and made it work with Slackware

Location:
trunk/src/VBox/Additions
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/HGCM.cpp

    r1 r301  
    7272}
    7373
    74 DECLINLINE(int) vbglHandleHeapEnter (void)
     74static DECLINLINE(int) vbglHandleHeapEnter (void)
    7575{
    7676    int rc = RTSemFastMutexRequest(g_vbgldata.mutexHGCMHandle);
     
    8282}
    8383
    84 DECLINLINE(void) vbglHandleHeapLeave (void)
     84static DECLINLINE(void) vbglHandleHeapLeave (void)
    8585{
    8686    RTSemFastMutexRelease(g_vbgldata.mutexHGCMHandle);
  • trunk/src/VBox/Additions/linux/Makefile

    r296 r301  
    5555                installer/vboxadd.sh \
    5656                installer/install.sh \
     57                ../../Installer/linux/routines.sh \
    5758                ../../Installer/linux/runlevel.sh \
    5859                installer/x11config.pl \
     
    8283        $(QUIET)$(INSTALL) -m 0755 installer/vboxadd-timesync.sh $(PATH_TARGET)/install
    8384        $(QUIET)$(INSTALL) -m 0755 installer/vboxadd.sh   $(PATH_TARGET)/install
     85        $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/routines.sh  $(PATH_TARGET)/install
    8486        $(QUIET)$(INSTALL) -m 0755 ../../Installer/linux/runlevel.sh  $(PATH_TARGET)/install
    8587        $(QUIET)$(INSTALL) -m 0755 installer/x11config.pl $(PATH_TARGET)/install
  • trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh

    r1 r301  
    1 #!/bin/bash
     1#!/bin/sh
    22#
    33#  InnoTek VirtualBox
     
    3232### END INIT INFO
    3333
    34 # We still have some dependency problems to solve
    35 #if [ ! "`uname -r | grep '2.4'`" = "" ]; then
    36 #    echo The VirtualBox time synchronization module currently does not work on 2.4 series Linux kernels
    37 #    exit 0
    38 #fi
     34PATH=$PATH:/bin:/sbin:/usr/sbin
    3935
    4036system=unknown
     
    5147    system=gentoo
    5248    PIDFILE="/var/run/vboxadd-timesync"
     49elif [ -f /etc/slackware-version ]; then
     50    system=slackware
    5351else
    5452    echo "$0: Unknown system" 1>&2
    5553fi
    5654
    57 if [ $system = redhat ]; then
     55if [ "$system" = redhat ]; then
    5856    . /etc/init.d/functions
    5957    fail_msg() {
     
    6866fi
    6967
    70 if [ $system = suse ]; then
     68if [ "$system" = suse ]; then
    7169    . /etc/rc.status
    7270    daemon() {
     
    8583fi
    8684
    87 if [ $system = debian ]; then
     85if [ "$system" = debian ]; then
    8886    daemon() {
    8987        start-stop-daemon --start --exec $1 -- $2
     
    103101fi
    104102
    105 if [ $system = gentoo ]; then
     103if [ "$system" = gentoo ]; then
    106104    . /sbin/functions.sh
    107105    daemon() {
     
    126124fi
    127125
     126if [ "$system" = slackware ]; then
     127    fail_msg() {
     128        echo "...fail!"
     129    }
     130
     131    succ_msg() {
     132        echo "...done."
     133    }
     134
     135    begin() {
     136        echo -n $1
     137    }
     138fi
     139
    128140binary=/usr/sbin/vboxadd-timesync
    129141
    130 test -x $binary || {
     142test -x "$binary" || {
    131143    echo "Cannot run $binary"
    132144    exit 1
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r1 r301  
    1 #! /bin/bash
     1#! /bin/sh
    22# InnoTek VirtualBox
    33# Linux Additions kernel module init script
     
    2929# Description:    VirtualBox Linux Additions kernel module
    3030### END INIT INFO
     31
     32PATH=$PATH:/bin:/sbin:/usr/sbin
    3133
    3234system=unknown
     
    3941elif [ -f /etc/gentoo-release ]; then
    4042    system=gentoo
     43elif [ -f /etc/slackware-version ]; then
     44    system=slackware
    4145else
    4246    echo "$0: Unknown system" 1>&2
    4347fi
    4448
    45 if [ $system = redhat ]; then
     49if [ "$system" = "redhat" ]; then
    4650    . /etc/init.d/functions
    4751    fail_msg() {
     
    6064fi
    6165
    62 if [ $system = suse ]; then
     66if [ "$system" = "suse" ]; then
    6367    . /etc/rc.status
    6468    fail_msg() {
     
    7781fi
    7882
    79 if [ $system = debian ]; then
     83if [ "$system" = "debian" ]; then
    8084    fail_msg() {
    8185        echo "...fail!"
     
    9195fi
    9296
    93 if [ $system = gentoo ]; then
     97if [ "$system" = "gentoo" ]; then
    9498    . /sbin/functions.sh
    9599    fail_msg() {
     
    110114fi
    111115
     116if [ "$system" = "slackware" ]; then
     117    fail_msg() {
     118        echo "...fail!"
     119    }
     120
     121    succ_msg() {
     122        echo "...done."
     123    }
     124
     125    begin() {
     126        echo -n $1
     127    }
     128fi
     129                                               
    112130kdir=/lib/modules/`uname -r`/misc
    113131dev=/dev/vboxadd
     
    120138
    121139fail() {
    122     if [ $system = gentoo ]; then
     140    if [ "$system" = "gentoo" ]; then
    123141        eerror $1
    124142        exit 1
     
    152170    if [ ! -c $dev ]; then
    153171        maj=`sed -n 's;\([0-9]\+\) vboxadd;\1;p' /proc/devices`
    154         test -z $maj && {
     172        test -z "$maj" && {
    155173            rmmod $modname
    156174            fail "Cannot locate device major"
  • trunk/src/VBox/Additions/linux/installer/vboxvfs.sh

    r1 r301  
    1 #! /bin/bash
     1#! /bin/sh
    22# InnoTek VirtualBox
    33# Linux Additions VFS kernel module init script
     
    2929# Description:    VirtualBox Linux Additions VFS kernel module
    3030### END INIT INFO
     31
     32PATH=$PATH:/bin:/sbin:/usr/sbin
    3133
    3234system=unknown
     
    3941elif [ -f /etc/gentoo-release ]; then
    4042    system=gentoo
     43elif [ -f /etc/slackware-version ]; then
     44    system=slackware
    4145else
    4246    echo "$0: Unknown system" 1>&2
    4347fi
    4448
    45 if [ $system = redhat ]; then
     49if [ "$system" = redhat ]; then
    4650    . /etc/init.d/functions
    4751    fail_msg() {
     
    6064fi
    6165
    62 if [ $system = suse ]; then
     66if [ "$system" = suse ]; then
    6367    . /etc/rc.status
    6468    fail_msg() {
     
    7781fi
    7882
    79 if [ $system = debian ]; then
     83if [ "$system" = debian ]; then
    8084    fail_msg() {
    8185        echo "...fail!"
     
    9195fi
    9296
    93 if [ $system = gentoo ]; then
     97if [ "$system" = gentoo ]; then
    9498    . /sbin/functions.sh
    9599    fail_msg() {
     
    110114fi
    111115
     116if [ "$system" = slackware ]; then
     117    fail_msg() {
     118        echo "...fail!"
     119    }
     120
     121    succ_msg() {
     122        echo "...done."
     123    }
     124
     125    begin() {
     126        echo -n $1
     127    }
     128fi
     129
    112130kdir=/lib/modules/`uname -r`/misc
    113131modname=vboxvfs
    114 module=$kdir/$modname
     132module="$kdir/$modname"
    115133
    116134file=""
     
    119137
    120138fail() {
    121     if [ $system = gentoo ]; then
     139    if [ "$system" = gentoo ]; then
    122140        eerror $1
    123141        exit 1
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette