Use "checkpath -W" instead of dir_writable()

This commit is contained in:
Christian Ruppert
2012-01-28 19:32:05 +01:00
parent 5a8344a3d1
commit fb4aa20d05
5 changed files with 7 additions and 12 deletions

View File

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