Bashrc.wiki: removed code from dmidecode section. Just read the source
This commit is contained in:
		
							parent
							
								
									231d8a5dbd
								
							
						
					
					
						commit
						e5ff970c37
					
				
							
								
								
									
										10
									
								
								Bashrc.wiki
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Bashrc.wiki
									
									
									
									
									
								
							| @ -102,16 +102,6 @@ https://git.thurstylark.com/vcsh/bashrc.git/tree/.bashrc.d/getdst.bash | ||||
| 
 | ||||
| I work with Dell machines a lot, and when dealing with hardware problems, it's nice to have the service tag handy. Lucky for me, the service tag is easily retrieveable using `dmidecode(1)`, so I made a function for it. | ||||
| 
 | ||||
| {{{class="prettyprint" | ||||
| getdst() { | ||||
| 	if [[ "$1" = "-l" ]]; then | ||||
| 		printf "http://www.dell.com/support/home/us/en/04/product-support/servicetag/%s/configuration\n" "$(getdst)" | ||||
| 	else | ||||
| 		sudo dmidecode -s system-serial-number | ||||
| 	fi | ||||
| } | ||||
| }}} | ||||
| 
 | ||||
| As an added bonus, the `-l` option will print the url for that product's support page. | ||||
| 
 | ||||
| ---- | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user