Ajout Makefile stage0
[hvlinux.git] / stage1 / create-config-files
index ef723b5..2c782fa 100755 (executable)
@@ -1,5 +1,4 @@
-#!/bin/sh
-set -o errexit
+#!/bin/bash
 
 # Reading system configuration informations, functions and package versions.
 source ../sysinfos
@@ -29,9 +28,10 @@ devpts            /dev/pts          devpts   gid=4,mode=620   0 0
 shm               /dev/shm          tmpfs    defaults         0 0
 EOF
 
-echo "Creating basic /etc/profile"
+echo "Creating basic /etc/profile and /etc/profile.d"
+install -v -m755 -d ${LFS}/etc/profile.d
 cat > ${LFS}/etc/profile << "EOF"
-#!/bin/sh
+#!/bin/bash
 # /etc/profile
 
 # System-wide environment and startup programs.
@@ -87,7 +87,7 @@ sed -i -e "s!_DEFAULT_EDITOR_!${DEFAULT_EDITOR}!g" ${LFS}/etc/profile
 
 echo "Creating /etc/bashrc"
 cat > ${LFS}/etc/bashrc << "EOF"
-#!/bin/sh
+#!/bin/bash
 
 # /etc/bashrc