mirror of
				https://github.com/RangeNetworks/openbts.git
				synced 2025-11-03 21:33:15 +00:00 
			
		
		
		
	git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@6168 19bc5d8c-e614-43d4-8b26-e1612bc8e597
		
			
				
	
	
		
			20 lines
		
	
	
		
			480 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			480 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
CONFIG_DIR=/etc/OpenBTS
 | 
						|
 | 
						|
# Create the config dir if it dos not exist
 | 
						|
if [ ! -d "$CONFIG_DIR" ]; then
 | 
						|
        mkdir $CONFIG_DIR
 | 
						|
fi
 | 
						|
 | 
						|
# Create the config/saved dir if it dos not exist
 | 
						|
if [ ! -d "$CONFIG_DIR/saved" ]; then
 | 
						|
        mkdir $CONFIG_DIR/saved
 | 
						|
fi
 | 
						|
 | 
						|
# backup any exsisting DB before we create the default
 | 
						|
if [ -e $CONFIG_DIR/OpenBTS.db ]; then
 | 
						|
	mv -f $CONFIG_DIR/OpenBTS.db $CONFIG_DIR/saved/OpenBTS.db
 | 
						|
fi
 | 
						|
sqlite3 $CONFIG_DIR/OpenBTS.db ".read OpenBTS.export.sql"
 |