mirror of
				https://github.com/oSoWoSo/DistroHopper.git
				synced 2024-08-14 22:46:53 +00:00 
			
		
		
		
	Drop smbd support
This commit is contained in:
		
							parent
							
								
									288d779e2c
								
							
						
					
					
						commit
						f061c3a67f
					
				
					 2 changed files with 5 additions and 13 deletions
				
			
		|  | @ -268,7 +268,6 @@ You can also pass optional parameters | |||
|   --snapshot info         : Show disk/snapshot info. | ||||
|   --status-quo            : Do not commit any changes to disk/snapshot. | ||||
|   --fullscreen            : Starts VM in full screen mode (Ctl+Alt+f to exit)" | ||||
|   --no-smb                : Do not expose the home directory via SMB. | ||||
|   --screen <screen>       : Use specified screen to determine the window size. | ||||
| ``` | ||||
| 
 | ||||
|  |  | |||
							
								
								
									
										17
									
								
								quickemu
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								quickemu
									
										
									
									
									
								
							|  | @ -363,23 +363,19 @@ function vm_boot() { | |||
| 
 | ||||
|   echo " - Video:    ${DISPLAY_DEVICE}" | ||||
|   echo " - GL:       ${GL^^}" | ||||
|   echo " - Virgil3D: ${VIRGL^^}" | ||||
|     # GL is not working with GTK and virtio-vga | ||||
|   echo " - Display:  ${OUTPUT^^}" | ||||
| 
 | ||||
|   # Set the hostname of the VM | ||||
|   local NET="user,hostname=${VMNAME}" | ||||
| 
 | ||||
|   # If smbd is available, and --no-smb is not set, export $HOME to the guest via samba | ||||
|   if [[ -e "/usr/sbin/smbd" && -z ${NO_SMB} ]]; then | ||||
|       NET="${NET},smb=${HOME}" | ||||
|   fi | ||||
| 
 | ||||
|   if [[ ${NET} == *"smb"* ]]; then | ||||
|     echo " - smbd:     ${HOME} will be exported to the guest via smb://10.0.2.4/qemu" | ||||
|   elif  [[ ${NO_SMB} -eq 1 ]]; then | ||||
|     echo " - smbd:     ${HOME} will not be exported to the guest. '--no-smb' is set." | ||||
|   if [ "${GL}" == "on" ] && [ "${DISPLAY_DEVICE}" == "virtio-vga" ]; then | ||||
|     DISPLAY_DEVICE="${DISPLAY_DEVICE},virgl=on" | ||||
|     echo " - Virgil3D: ON" | ||||
|   else | ||||
|     echo " - smbd:     ${HOME} will not be exported to the guest. 'smbd' not found." | ||||
|     echo " - Virgil3D: OFF" | ||||
|   fi | ||||
| 
 | ||||
|   # Find a free port to expose ssh to the guest | ||||
|  | @ -624,9 +620,6 @@ else | |||
|           -shortcut|--shortcut) | ||||
|             SHORTCUT=1 | ||||
|             shift;; | ||||
|           -no-smb|--no-smb) | ||||
|             NO_SMB=1 | ||||
|             shift;; | ||||
|           -h|--h|-help|--help) | ||||
|             usage;; | ||||
|           *) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue