projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changé fonction rcmd pour régler bug avec fpkg
[hvlinux.git]
/
stage5
/
stage5-additions
diff --git
a/stage5/stage5-additions
b/stage5/stage5-additions
index
5c1538b
..
73591b1
100755
(executable)
--- a/
stage5/stage5-additions
+++ b/
stage5/stage5-additions
@@
-1,8
+1,11
@@
#!/bin/sh
#!/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_LOG_FILE=${LFS_LOG_DIR}/install.log
+export LFS_TMP=/tmp
# Reading system configuration informations, functions and package versions.
source ../sysinfos
# Reading system configuration informations, functions and package versions.
source ../sysinfos
@@
-10,12
+13,14
@@
source ../functions
source ../packages-list
source /etc/profile
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
fi
-ipkg ${GDB} cis-gdb
+init_log_file
+
+# Scripts directory
+export SCRDIR=$(pwd)
exit $?
exit $?