Make checks for writable directory posix compliant

Reported-by: Maxim Kammerer <mk@de.su>
X-Gentoo-Bug: 398931
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=398931
This commit is contained in:
William Hubbs
2012-01-20 16:48:24 -06:00
parent 2990e5a2e3
commit 6e2fbf6a0f
5 changed files with 8 additions and 8 deletions

View File

@@ -63,7 +63,7 @@ start()
fi
# Save the keymapping for use immediately at boot
if [ -w "$RC_LIBEXECDIR" ]; then
if dir_writable "$RC_LIBEXECDIR"; then
mkdir -p "$RC_LIBEXECDIR"/console
dumpkeys >"$RC_LIBEXECDIR"/console/keymap
fi