diff options
author | William Hubbs <williamh@gentoo.org> | 2011-09-07 15:11:04 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2011-09-07 15:11:04 -0500 |
commit | b42ab3b2f4daaebdac043478f0ae385200a25535 (patch) | |
tree | e9d2d976c66cfb07927ca0faecc5abedd3896f92 /sh | |
parent | 5ed4d084d95608e40cb21888c18a8f381a44cd69 (diff) |
Use checkpath to create /run/lock
Diffstat (limited to 'sh')
-rw-r--r-- | sh/init-early.sh.Linux.in | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sh/init-early.sh.Linux.in b/sh/init-early.sh.Linux.in index 3a81ef94..83464f3d 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 |