Changeset 43998 in vbox for trunk/src/VBox/Additions/solaris/Installer
- Timestamp:
- Nov 29, 2012 4:15:22 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 82387
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/solaris/Installer/postinstall.sh
r42469 r43998 49 49 } 50 50 51 # uncompress_files(directory_with_*.Z_files) 51 52 uncompress_files() 52 53 { 53 # VBox guest files 54 uncompress_file "$1" "VBoxClient" 55 uncompress_file "$1" "VBoxService" 56 uncompress_file "$1" "VBoxControl" 57 58 # VBox Xorg Video drivers 59 uncompress_file "$1" "vboxvideo_drv_13.so" 60 uncompress_file "$1" "vboxvideo_drv_14.so" 61 uncompress_file "$1" "vboxvideo_drv_15.so" 62 uncompress_file "$1" "vboxvideo_drv_16.so" 63 uncompress_file "$1" "vboxvideo_drv_17.so" 64 uncompress_file "$1" "vboxvideo_drv_18.so" 65 uncompress_file "$1" "vboxvideo_drv_19.so" 66 uncompress_file "$1" "vboxvideo_drv_110.so" 67 uncompress_file "$1" "vboxvideo_drv_111.so" 68 uncompress_file "$1" "vboxvideo_drv_112.so" 69 uncompress_file "$1" "vboxvideo_drv_70.so" 70 uncompress_file "$1" "vboxvideo_drv_71.so" 54 for i in "${1}/"*.Z; do 55 uncompress_file "${1}" "`basename \"${i}\" .Z`" 56 done 71 57 } 72 58 … … 144 130 fi 145 131 146 vboxvideo_src="" 147 132 # "X.Y.Z" - strip off all numerics after the 2nd '.' character, e.g. "1.11.3" -> "1.11" 133 # Then the next sed, strips of all '.' characters, "1.11" -> "111". 134 fileversion=`echo $xorgversion | sed "s/\.[0-9]*//2" | sed "s/\.//"` 135 vboxvideo_src="vboxvideo_drv_$fileversion.so" 136 137 # Handle exceptions now where the X.org version does not exactly match the file-version. 148 138 case "$xorgversion" in 149 1.3.* ) 150 vboxvideo_src="vboxvideo_drv_13.so" 151 ;; 152 1.4.* ) 153 vboxvideo_src="vboxvideo_drv_14.so" 154 ;; 155 1.5.99 | 1.6.* ) 139 1.5.99 ) 156 140 vboxvideo_src="vboxvideo_drv_16.so" 157 141 ;; 158 1.5.* ) 159 vboxvideo_src="vboxvideo_drv_15.so" 160 ;; 161 1.7.*) 162 vboxvideo_src="vboxvideo_drv_17.so" 163 ;; 164 1.8.*) 165 vboxvideo_src="vboxvideo_drv_18.so" 166 ;; 167 1.9.*) 168 vboxvideo_src="vboxvideo_drv_19.so" 169 ;; 170 1.10.*) 171 vboxvideo_src="vboxvideo_drv_110.so" 172 ;; 173 1.11.*) 174 vboxvideo_src="vboxvideo_drv_111.so" 175 ;; 176 1.12.*) 177 vboxvideo_src="vboxvideo_drv_112.so" 178 ;; 179 7.1.* | *7.2.* ) 142 7.2.* ) 180 143 vboxvideo_src="vboxvideo_drv_71.so" 181 144 ;; 182 6.9.* | 7.0.*)145 6.9.* ) 183 146 vboxvideo_src="vboxvideo_drv_70.so" 184 147 ;; … … 189 152 echo "*** Unknown version of the X Window System installed." 190 153 echo "*** Failed to install the VirtualBox X Window System drivers." 154 155 # Exit as partially failed installation 156 retval=2 157 elif test ! -f "$vboxadditions32_path/$vboxvideo_src" && test ! -f "$vboxadditions64_path/$vboxvideo_src"; then 158 echo "*** $vboxadditions32_path/$vboxvideo_src or $vboxadditions64_path/$vboxvideo_src not found!" 159 echo "*** Failed to install the VirtualBox X.org drivers." 191 160 192 161 # Exit as partially failed installation
Note:
See TracChangeset
for help on using the changeset viewer.