From b42ab3b2f4daaebdac043478f0ae385200a25535 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 7 Sep 2011 15:11:04 -0500 Subject: Use checkpath to create /run/lock --- sh/init-early.sh.Linux.in | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'sh') diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in index 3a81ef9..83464f3 100644 --- a/sh/init-early.sh.Linux.in +++ b/sh/init-early.sh.Linux.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 -- cgit v1.2.3