VirtualBox

Changeset 99525 in vbox


Ignore:
Timestamp:
Apr 24, 2023 5:34:07 PM (19 months ago)
Author:
vboxsync
Message:

Additions: Linux: rcvboxadd: more reshuffling in reload area to make logging more consistent, bugref:10359.

File:
1 edited

Legend:

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

    r99524 r99525  
    997997        if [ $? -ne 0 ]; then
    998998            # Was module loaded?
    999             [ -n "$mod_is_running" ] || fail "module $mod is not loaded"
    1000             # If module was loaded it means that it has incorrect version.
    1001             fail "currently loaded module $mod version ($(running_module_version "$mod")) does not match to VirtualBox Guest Additions installation version ($VBOX_VERSION $VBOX_REVISION)"
     999            if [ -z "$mod_is_running" ]; then
     1000                info "module $mod is not loaded"
     1001            else
     1002                # If module was loaded it means that it has incorrect version.
     1003                info "currently loaded module $mod version ($(running_module_version "$mod")) does not match to VirtualBox Guest Additions installation version ($VBOX_VERSION $VBOX_REVISION)"
     1004            fi
     1005
     1006            # Set "bad" rc.
     1007            false
    10021008        fi
    10031009
     
    11401146
    11411147        # Reload VBoxClient processes.
    1142         [ $? -eq 0 ] && try_load_preserve_rc "send_signal "-USR1" control" "unable to reload user session services"
     1148        [ $? -eq 0 ] && try_load_preserve_rc "send_signal -USR1 control" "unable to reload user session services"
     1149
     1150        # Check if we just loaded modules of correct version.
     1151        [ $? -eq 0 ] && try_load_preserve_rc "check_status_kernel" "kernel modules were not reloaded"
     1152
     1153        # Check if user-land processes were restarted as well.
     1154        [ $? -eq 0 ] && try_load_preserve_rc "check_status_user" "user-land services were not started"
    11431155
    11441156        if [ $? -eq 0 ]; then
    1145 
    1146             # Check if we just loaded modules of correct version.
    1147             check_status_kernel
    1148 
    1149             # Check if user-land processes were restarted as well.
    1150             check_status_user
    1151 
    11521157            # Take reported version of running Guest Additions from running vboxguest module (as a paranoia check).
    11531158            info "kernel modules and services $(running_module_version "vboxguest") reloaded"
     
    12321237status-kernel)
    12331238    check_root
    1234     check_status_kernel && info "Kernel modules are loaded"
     1239    check_status_kernel
     1240    if [ $? -eq 0 ]; then
     1241        info "kernel modules are loaded"
     1242    else
     1243        info "kernel modules were not loaded"
     1244        false
     1245    fi
    12351246    ;;
    12361247status-user)
     
    12381249    check_status_user
    12391250    if [ $? -eq 0 ]; then
    1240         info "User-land services are running"
     1251        info "user-land services are running"
    12411252    else
    1242         info "User-land services are not running"
     1253        info "user-land services are not running"
    12431254        false
    12441255    fi
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