Changeset 107920 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jan 23, 2025 4:19:03 PM (3 months ago)
- svn:sync-xref-src-repo-rev:
- 167151
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r107919 r107920 168 168 VBOX_REVISION="r`"$VBOXCONTROL" --version | cut -d r -f2`" 169 169 [ "$VBOX_REVISION" != "r" ] || VBOX_REVISION='unknown' 170 171 # Returns if the vboxguest module is running or not.172 #173 # Returns true if vboxguest module is running, false if not.174 running_vboxguest()175 {176 lsmod | grep -q "vboxguest[^_-]"177 }178 179 # Returns if the vboxsf module is running or not.180 #181 # Returns true if vboxsf module is running, false if not.182 running_vboxsf()183 {184 lsmod | grep -q "vboxsf[^_-]"185 }186 170 187 171 # Returns if a specific module is running or not. … … 881 865 groupadd -r -f vboxdrmipc >/dev/null 2>&1 882 866 883 if running_ vboxguest; then867 if running_module "vboxguest"; then 884 868 # Only warn user if currently loaded modules version do not match Guest Additions Installation. 885 869 check_running_module_version "vboxguest" || info "Running kernel modules will not be replaced until the system is restarted or 'rcvboxadd reload' triggered" … … 1164 1148 # If final goal of unloading vboxguest.ko won't be met, we will fail on 1165 1149 # the next step anyway. 1166 running_ vboxsf&& modprobe -r vboxsf >/dev/null 2>&11167 running_ vboxguest1150 running_module "vboxsf" && modprobe -r vboxsf >/dev/null 2>&1 1151 running_module "vboxguest" 1168 1152 if [ $? -eq 0 ]; then 1169 1153 modprobe -r vboxguest >/dev/null 2>&1 … … 1176 1160 1177 1161 # Check if we succeeded with unloading vboxguest after several attempts. 1178 running_ vboxguest1162 running_module "vboxguest" 1179 1163 if [ $? -eq 0 ]; then 1180 1164 info "cannot reload kernel modules: one or more module(s) is still in use" … … 1218 1202 dmnstatus() 1219 1203 { 1220 if running_ vboxguest; then1204 if running_module "vboxguest"; then 1221 1205 echo "The VirtualBox Additions are currently running." 1222 1206 else
Note:
See TracChangeset
for help on using the changeset viewer.