Use checkpath to create /run/lock
This commit is contained in:
		@@ -18,13 +18,7 @@ if [ -d /run ]; then
 | 
			
		||||
		fi
 | 
			
		||||
		eend $?
 | 
			
		||||
	fi
 | 
			
		||||
	if [ ! -d /run/lock ]; then
 | 
			
		||||
		mkdir /run/lock
 | 
			
		||||
	fi
 | 
			
		||||
	if [ -d /run/lock ]; then
 | 
			
		||||
		chown root:uucp /run/lock
 | 
			
		||||
		chmod 0775 /run/lock
 | 
			
		||||
	fi
 | 
			
		||||
	checkpath -d -m 0775 -o root:uucp /run/lock
 | 
			
		||||
elif [ -e /run ]; then
 | 
			
		||||
	einfo "Unable to mount /run since it is not a directory"
 | 
			
		||||
fi
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user