VirtualBox

Ignore:
Timestamp:
Jan 25, 2007 2:42:44 PM (18 years ago)
Author:
vboxsync
Message:

Rewrote the additions installer and made it work with Slackware

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.

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