24 lines
		
	
	
		
			426 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			426 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								start()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    if ! [ -f /dev/gps0 ]; then
							 | 
						||
| 
								 | 
							
								        mount -o remount,rw /
							 | 
						||
| 
								 | 
							
								        ln -fs "$cfg_gpspps_dev" /dev/gps0
							 | 
						||
| 
								 | 
							
								        mount -o remount,ro /
							 | 
						||
| 
								 | 
							
								    fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    if ! [ -f /dev/gpspps0 ]; then
							 | 
						||
| 
								 | 
							
								        mount -o remount,rw /
							 | 
						||
| 
								 | 
							
								        ln -fs /dev/pps0 /dev/gpspps0
							 | 
						||
| 
								 | 
							
								        mount -o remount,ro /
							 | 
						||
| 
								 | 
							
								    fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    /usr/bin/ldattach PPS /dev/gps0
							 | 
						||
| 
								 | 
							
								    /usr/bin/ntpd -g -c /etc/ntp/gpspps.cfg
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								stop()
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    killall ntpd
							 | 
						||
| 
								 | 
							
								    killall ldattach
							 | 
						||
| 
								 | 
							
								}
							 |