VirtualBox

Ignore:
Timestamp:
Jul 8, 2015 12:31:21 PM (10 years ago)
Author:
vboxsync
Message:

Installers/linux: make init scripts work with recent ArchLinux versions.

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

Legend:

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

    r56750 r56860  
    4141    system=gentoo
    4242    PIDFILE="/var/run/vboxadd-service"
    43 elif [ -f /etc/arch-release ]; then
    44      system=arch
    45      PIDFILE="/var/run/vboxadd-service"
    4643elif [ -f /etc/slackware-version ]; then
    4744    system=slackware
     
    146143        shift
    147144    fi
    148 fi
    149 
    150 if [ "$system" = "arch" ]; then
    151     USECOLOR=yes
    152     . /etc/rc.d/functions
    153     daemon() {
    154         $@
    155         test $? -eq 0 && add_daemon rc.`basename $1`
    156     }
    157 
    158     killproc() {
    159         killall $@
    160         rm_daemon `basename $@`
    161     }
    162 
    163     fail_msg() {
    164         stat_fail
    165     }
    166 
    167     succ_msg() {
    168         stat_done
    169     }
    170 
    171     begin() {
    172         stat_busy "$1"
    173     }
    174 
    175145fi
    176146
  • trunk/src/VBox/Additions/linux/installer/vboxadd-x11.sh

    r56776 r56860  
    6969    /usr/X11R6/lib/X11/XF86Config"
    7070
    71 if [ -f /etc/arch-release ]; then
    72     system=arch
    73 elif [ -f /etc/redhat-release ]; then
     71if [ -f /etc/redhat-release ]; then
    7472    system=redhat
    7573elif [ -f /etc/debian_version ]; then
     
    8381else
    8482    system=other
    85 fi
    86 
    87 if [ "$system" = "arch" ]; then
    88     USECOLOR=yes
    89     . /etc/rc.d/functions
    90     fail_msg() {
    91         stat_fail
    92     }
    93 
    94     succ_msg() {
    95         stat_done
    96     }
    97 
    98     begin() {
    99         stat_busy "$1"
    100     }
    10183fi
    10284
  • trunk/src/VBox/Additions/linux/installer/vboxadd.sh

    r56828 r56860  
    5858done
    5959
    60 if [ -f /etc/arch-release ]; then
    61     system=arch
    62 elif [ -f /etc/redhat-release ]; then
     60if [ -f /etc/redhat-release ]; then
    6361    system=redhat
    6462elif [ -f /etc/SuSE-release ]; then
     
    7068else
    7169    system=other
    72 fi
    73 
    74 if [ "$system" = "arch" ]; then
    75     USECOLOR=yes
    76     . /etc/rc.d/functions
    77     fail_msg() {
    78         stat_fail
    79     }
    80 
    81     succ_msg() {
    82         stat_done
    83     }
    84 
    85     begin() {
    86         stat_busy "$1"
    87     }
    8870fi
    8971
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