X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;ds=sidebyside;f=stage5%2Fstage5-additions;h=73591b1aee1bcbcd2060ef4af986a935fa16db7e;hb=fb687a8c2dc6ac58f8be02dda9b3f04cc9d10f28;hp=5c1538b70d86998a08105400a5474087cdd4768c;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage5/stage5-additions b/stage5/stage5-additions index 5c1538b..73591b1 100755 --- a/stage5/stage5-additions +++ b/stage5/stage5-additions @@ -1,8 +1,11 @@ #!/bin/sh -export LFS_PKG_DIR="$(dirname $(dirname $(pwd)))/packages/stage4" -export LFS_LOG_DIR=/var/log/hvlinux-install/stage4 +LFS_STAGE=stage4 + +export LFS_PKG_DIR="$(dirname $(pwd))/packages/${LFS_STAGE}" +export LFS_LOG_DIR=/var/log/hvlinux-install/${LFS_STAGE} export LFS_LOG_FILE=${LFS_LOG_DIR}/install.log +export LFS_TMP=/tmp # Reading system configuration informations, functions and package versions. source ../sysinfos @@ -10,12 +13,14 @@ source ../functions source ../packages-list source /etc/profile -# Init log file -mkdir -p ${LFS_LOG_DIR} || exit 1 -if [ ! -f ${LFS_LOG_FILE} ]; then - touch ${LFS_LOG_FILE} || exit 1 +if [ "x${USER}" != "xroot" ]; then + echo "You must be the superuser to install hvlinux." + exit 1 fi -ipkg ${GDB} cis-gdb +init_log_file + +# Scripts directory +export SCRDIR=$(pwd) exit $?