diff options
author | Aaron Griffin <aaron@archlinux.org> | 2006-10-04 09:09:58 +0200 |
---|---|---|
committer | Aaron Griffin <aaron@archlinux.org> | 2006-10-04 09:09:58 +0200 |
commit | bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10 (patch) | |
tree | fab861dc3ed9441259f9598cd12e1988173ac228 | |
parent | dfa0670d840d5019c4b12e87c4fb0a35e04f49fa (diff) | |
download | mkinitcpio-bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10.tar.gz mkinitcpio-bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10.tar.xz |
/tmp cleanup and autodetection fixes (checked in previously)
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@172 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r-- | mkinitcpio | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -87,8 +87,7 @@ MODULEDIR="${BASEDIR}/lib/modules/${KERNELVERSION}" if [ "x${BASEDIR}" != "x" ]; then if [ "${BASEDIR:0:1}" != "/" ]; then - echo "base directory '${BASEDIR}' must be an absolute path" - exit 1 + BASEDIR="$(pwd)/${BASEDIR}" elif [ ! -d "${BASEDIR}" ]; then echo "base directory '${BASEDIR}' does not exist or is not a directory" exit 1 @@ -116,6 +115,9 @@ else touch "${FILELIST}" fi +BASEDIR=$(echo ${BASEDIR} | tr -s /) +MODULEDIR=$(echo ${MODULEDIR} | tr -s /) + source "${FUNCTIONS}" if [ "${SHOW_AUTOMODS}" = "y" ]; then |