 3ead9e7b74
			
		
	
	3ead9e7b74
	
	
	
		
			
			Restarting service causes file-systems to be unmounted without being mounted back. When this service was obsoleted it should have been implemented in a way that all actions are ignored. Up to this commit default handler was called when restart was requested. This default handler just simply calls stop and start. That means that stop called unmount but start just printed that this service is obsoleted. This instead implements restart that just prints same message like start does. It just calls start in reality. This makes restart unavailable for call. Signed-off-by: Karel Kočí <karel.koci@nic.cz>
		
			
				
	
	
		
			21 lines
		
	
	
		
			237 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			237 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/bin/sh /etc/rc.common
 | |
| # (C) 2013 openwrt.org
 | |
| 
 | |
| START=40
 | |
| 
 | |
| boot() {
 | |
| 	/sbin/block mount
 | |
| }
 | |
| 
 | |
| start() {
 | |
| 	echo "this file has been obsoleted. please call \"/sbin/block mount\" directly"
 | |
| }
 | |
| 
 | |
| restart() {
 | |
| 	start
 | |
| }
 | |
| 
 | |
| stop() {
 | |
| 	/sbin/block umount
 | |
| }
 |