You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
	
	
		
			18 lines
		
	
	
		
			517 B
		
	
	
	
		
			Plaintext
		
	
		
		
			
		
	
	
			18 lines
		
	
	
		
			517 B
		
	
	
	
		
			Plaintext
		
	
| 
								 
											5 years ago
										 
									 | 
							
								#!/bin/sh
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								if grep -q '^deb ' /etc/apt/sources.list; then
							 | 
						||
| 
								 | 
							
								    echo "INFO: sources.list is configured, everything is fine"
							 | 
						||
| 
								 | 
							
								    exit 0
							 | 
						||
| 
								 | 
							
								fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								echo "INFO: sources.list is empty, setting up a default one for Kali"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								cat >/etc/apt/sources.list <<END
							 | 
						||
| 
								 | 
							
								# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
							 | 
						||
| 
								 | 
							
								deb http://http.kali.org/kali kali-rolling main contrib non-free
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								# Additional line for source packages
							 | 
						||
| 
								 | 
							
								# deb-src http://http.kali.org/kali kali-rolling main contrib non-free
							 | 
						||
| 
								 | 
							
								END
							 | 
						||
| 
								 | 
							
								apt-get update
							 |