Changeset 99502 in vbox
- Timestamp:
- Apr 21, 2023 1:33:36 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/installer/vboxadd.sh
r99488 r99502 156 156 [ "$VBOX_REVISION" != "r" ] || VBOX_REVISION='unknown' 157 157 158 # Returns if the vboxguest module is running or not. 159 # 160 # Returns true if vboxguest module is running, false if not. 158 161 running_vboxguest() 159 162 { … … 161 164 } 162 165 166 # Returns if the vboxadd module is running or not. 167 # 168 # Returns true if vboxadd module is running, false if not. 163 169 running_vboxadd() 164 170 { … … 166 172 } 167 173 174 # Returns if the vboxsf module is running or not. 175 # 176 # Returns true if vboxsf module is running, false if not. 168 177 running_vboxsf() 169 178 { … … 171 180 } 172 181 182 # Returns if the vboxvideo module is running or not. 183 # 184 # Returns true if vboxvideo module is running, false if not. 173 185 running_vboxvideo() 174 186 { … … 176 188 } 177 189 190 # Returns if a specific module is running or not. 191 # 192 # Input $1: Module name to check running status for. 193 # 194 # Returns true if the module is running, false if not. 178 195 running_module() 179 196 { … … 181 198 } 182 199 183 # Get version string of currently running kernel module. 200 # Returns the version string of a currently running kernel module. 201 # 202 # Input $1: Module name to check. 203 # 204 # Returns the module version string if found, or none if not found. 184 205 running_module_version() 185 206 { 186 mod= $1207 mod="$1" 187 208 version_string_path="/sys/module/"$mod"/version" 188 209 … … 195 216 } 196 217 197 # Check if currently loaded kernel module version matches to 198 # current Guest Additions installed version and revision. 218 # Checks if a loaded kernel module version matches to the currently installed Guest Additions version and revision. 219 # 220 # Input $1: Module name to check. 221 # 222 # Returns "1" if the module matches the installed Guest Additions, or none if not. 199 223 check_running_module_version() 200 224 { … … 215 239 } 216 240 217 ## Did we install a systemd service? 241 # Returns if we did install a service as a systemd service. 242 # 243 # Input $1: Service name to check. 244 # 245 # Returns true if the service is installed as a systemd service, false if not. 218 246 systemd_service_installed() 219 247 { … … 225 253 } 226 254 227 ## Perform an action on a service255 ## Performs an action on a service 228 256 do_sysvinit_action() 229 257 { … … 296 324 } 297 325 298 ## Update the initramfs. Debian and Ubuntu put the graphics driver in, and326 ## Updates the initramfs. Debian and Ubuntu put the graphics driver in, and 299 327 # need the touch(1) command below. Everyone else that I checked just need 300 328 # the right module alias file from depmod(1) and only use the initramfs to … … 324 352 } 325 353 326 # Remove any existing VirtualBox guest kernel modules from the disk, but not354 # Removes any existing VirtualBox guest kernel modules from the disk, but not 327 355 # from the kernel as they may still be in use 328 356 cleanup_modules() … … 375 403 esac 376 404 377 # Check if update-secureboot-policy tool supports required commandline options.405 # Checks if update-secureboot-policy tool supports required commandline options. 378 406 update_secureboot_policy_supports() 379 407 { … … 659 687 } 660 688 661 # Returns path to module file as seen by modinfo(8) or empty string. 689 # Returns path to a module file as seen by modinfo(8), or none if not found. 690 # 691 # Input $1: Module name to get path for. 692 # 693 # Returns the module path as a string. 662 694 module_path() 663 695 { … … 668 700 } 669 701 670 # Returns module version if module is available or empty string. 702 # Returns module version if module is available, or none if not found. 703 # 704 # Input $1: Module name to get version for. 705 # 706 # Returns the module version as a string. 671 707 module_version() 672 708 { … … 677 713 } 678 714 679 # Returns module revision if module is available in the system or empty string. 715 # Returns the module revision if module is available in the system, or none if not found. 716 # 717 # Input $1: Module name to get revision for. 718 # 719 # Returns the module revision as a string. 680 720 module_revision() 681 721 { … … 686 726 } 687 727 728 # Checks if a given kernel module is properly signed or not. 729 # 730 # Input $1: Module name to check. 731 # 688 732 # Returns "1" if module is signed and signature can be verified 689 # with public key provided in DEB_PUB_KEY . Or empty stringotherwise.733 # with public key provided in DEB_PUB_KEY, or none otherwise. 690 734 module_signed() 691 735 { … … 743 787 } 744 788 789 # Checks if a given kernel module matches the installed VirtualBox Guest Additions version. 790 # 791 # Input $1: Module name to check. 792 # 745 793 # Returns "1" if externally built module is available in the system and its 746 794 # version and revision number do match to current VirtualBox installation. 747 # Or empty stringotherwise.795 # None otherwise. 748 796 module_available() 749 797 { … … 781 829 782 830 # Check if required modules are installed in the system and versions match. 831 # 832 # Returns "1" on success, none otherwise. 783 833 setup_complete() 784 834 {
Note:
See TracChangeset
for help on using the changeset viewer.