mirror of
				https://github.com/dockur/windows.git
				synced 2025-10-30 04:35:49 +00:00 
			
		
		
		
	Update samba.sh
This commit is contained in:
		
							parent
							
								
									88e0f9b1f7
								
							
						
					
					
						commit
						55b17fd3a4
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -72,14 +72,14 @@ mkdir -p "$share" | |||
| 
 | ||||
| ! smbd && smbd --debug-stdout | ||||
| 
 | ||||
| isXP="N" | ||||
| legacy="N" | ||||
| 
 | ||||
| if [ -f "$STORAGE/windows.old" ]; then | ||||
|   MT=$(<"$STORAGE/windows.old") | ||||
|   [[ "${MT,,}" == "pc-q35-2"* ]] && isXP="Y" | ||||
|   [[ "${MT,,}" == "pc-q35-2"* ]] && legacy="Y" | ||||
| fi | ||||
| 
 | ||||
| if [[ "$isXP" == [Yy1]* ]]; then | ||||
| if [[ "$legacy" == [Yy1]* ]]; then | ||||
|   [[ "$DHCP" == [Yy1]* ]] && return 0 | ||||
|   # Enable NetBIOS on Windows XP | ||||
|   ! nmbd && nmbd --debug-stdout | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kroese
						Kroese