mirror of
				https://github.com/Telecominfraproject/ols-nos.git
				synced 2025-11-04 03:57:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			14 lines
		
	
	
		
			317 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			317 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
# Wait until redis starts
 | 
						|
until [[ $(redis-cli ping | grep -c PONG) -gt 0 ]]; do
 | 
						|
  sleep 1;
 | 
						|
done
 | 
						|
 | 
						|
# If there is a config db dump file, load it
 | 
						|
if [ -r /etc/sonic/config_db.json ]; then
 | 
						|
    sonic-cfggen -j /etc/sonic/config_db.json --write-to-db
 | 
						|
fi
 | 
						|
 | 
						|
redis-cli -n 4 SET "CONFIG_DB_INITIALIZED" "1"
 |