projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Réglé erreur avec désactivation de drivers vidéos X.org lors du fetch
[hvlinux.git]
/
stage0
/
create-version
diff --git
a/stage0/create-version
b/stage0/create-version
index
527e7ba
..
6ebbff1
100644
(file)
--- a/
stage0/create-version
+++ b/
stage0/create-version
@@
-6,24
+6,21
@@
create_hvlinux_version()
{
local CFG_DIR="../config"
{
local CFG_DIR="../config"
- if [ -f ${CFG_DIR}/${HV_VER_FILE} ]; then
- echo "Version file already created"
- return 0
- fi
-
- echo "Create new hvlinux-version file"
+ if [ ! -f ${CFG_DIR}/${HV_VER_FILE} ]; then
+ echo "Create new hvlinux-version file"
- if [ ! -x /usr/bin/uuidgen ]; then
- echo "Error, missing /usr/bin/uuidgen program"
- exit 1
- fi
+
if [ ! -x /usr/bin/uuidgen ]; then
+
echo "Error, missing /usr/bin/uuidgen program"
+
exit 1
+
fi
- cat > ${CFG_DIR}/${HV_VER_FILE} <<EOF
+
cat > ${CFG_DIR}/${HV_VER_FILE} <<EOF
# Do not edit this file.
# This file is autogenerated by the HVLinux build system
EOF
# Do not edit this file.
# This file is autogenerated by the HVLinux build system
EOF
- echo "HVUUID=$(uuidgen)" >> ${CFG_DIR}/${HV_VER_FILE}
+ echo "HVUUID=$(uuidgen)" >> ${CFG_DIR}/${HV_VER_FILE}
+ fi
# Copy local file to destination LFS partition
mkdir -pv ${LFS}/etc
# Copy local file to destination LFS partition
mkdir -pv ${LFS}/etc