VirtualBox

Changeset 2530 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
May 8, 2007 9:09:54 AM (18 years ago)
Author:
vboxsync
Message:

Updated the Linux installer init scripts to work with unknown distributions

Location:
trunk/src/VBox/Additions/linux/installer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/installer/vboxadd-timesync.sh

    r1715 r2530  
    3737    system=gentoo
    3838    PIDFILE="/var/run/vboxadd-timesync"
    39 elif [ -f /etc/slackware-version ]; then
    40     system=slackware
    4139else
    42     echo "$0: Unknown system" 1>&2
     40    system=other
     41    if [ -d /var/run -a -w /var/run ]; then
     42        PIDFILE="/var/run/vboxadd-timesync"
     43    fi
    4344fi
    4445
     
    114115fi
    115116
    116 if [ "$system" = "slackware" ]; then
     117if [ "$system" = "other" ]; then
    117118    fail_msg() {
    118119        echo " ...fail!"
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r1715 r2530  
    2323PATH=$PATH:/bin:/sbin:/usr/sbin
    2424
    25 system=unknown
    2625if [ -f /etc/redhat-release ]; then
    2726    system=redhat
    2827elif [ -f /etc/SuSE-release ]; then
    2928    system=suse
    30 elif [ -f /etc/debian_version ]; then
    31     system=debian
    3229elif [ -f /etc/gentoo-release ]; then
    3330    system=gentoo
    34 elif [ -f /etc/slackware-version ]; then
    35     system=slackware
    3631else
    37     echo "$0: Unknown system" 1>&2
     32    system=other
    3833fi
    3934
     
    7267fi
    7368
    74 if [ "$system" = "debian" ]; then
    75     fail_msg() {
    76         echo " ...fail!"
    77     }
    78 
    79     succ_msg() {
    80         echo " ...done."
    81     }
    82 
    83     begin() {
    84         echo -n $1
    85     }
    86 fi
    87 
    8869if [ "$system" = "gentoo" ]; then
    8970    . /sbin/functions.sh
     
    10586fi
    10687
    107 if [ "$system" = "slackware" ]; then
     88if [ "$system" = "other" ]; then
    10889    fail_msg() {
    10990        echo " ...fail!"
  • trunk/src/VBox/Additions/linux/installer/vboxvfs.sh

    r1715 r2530  
    2323PATH=$PATH:/bin:/sbin:/usr/sbin
    2424
    25 system=unknown
    2625if [ -f /etc/redhat-release ]; then
    2726    system=redhat
    2827elif [ -f /etc/SuSE-release ]; then
    2928    system=suse
    30 elif [ -f /etc/debian_version ]; then
    31     system=debian
    3229elif [ -f /etc/gentoo-release ]; then
    3330    system=gentoo
    34 elif [ -f /etc/slackware-version ]; then
    35     system=slackware
    3631else
    37     echo "$0: Unknown system" 1>&2
     32    system=other
    3833fi
    3934
     
    7267fi
    7368
    74 if [ "$system" = "debian" ]; then
    75     fail_msg() {
    76         echo " ...fail!"
    77     }
    78 
    79     succ_msg() {
    80         echo " ...done."
    81     }
    82 
    83     begin() {
    84         echo -n $1
    85     }
    86 fi
    87 
    8869if [ "$system" = "gentoo" ]; then
    8970    . /sbin/functions.sh
     
    10586fi
    10687
    107 if [ "$system" = "slackware" ]; then
     88if [ "$system" = "other" ]; then
    10889    fail_msg() {
    10990        echo " ...fail!"
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