From bdb9d1b70cd5fcfa10dfe762795ac95ba71d6f10 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Wed, 4 Oct 2006 07:09:58 +0000 Subject: /tmp cleanup and autodetection fixes (checked in previously) git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@172 880c04e9-e011-0410-abf7-b926e227c9cd --- mkinitcpio | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkinitcpio b/mkinitcpio index b55648a..c22cc2d 100644 --- a/mkinitcpio +++ b/mkinitcpio @@ -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 -- cgit v1.2.3-24-g4f1b