17 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			17 lines
		
	
	
		
			256 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								# Configuration parameters
							 | 
						||
| 
								 | 
							
								# cfg_ntpd_config: NTP Daemon configuration file.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								start()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    if [ -z "$cfg_ntpd_config" ]; then
							 | 
						||
| 
								 | 
							
								        cfg_ntpd_config="/etc/ntp/default.cfg"
							 | 
						||
| 
								 | 
							
								    fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /usr/bin/ntpd -g -c "$cfg_ntpd_config"
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								stop()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    killall ntpd
							 | 
						||
| 
								 | 
							
								}
							 |