X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fcreate-config-files;h=0bc590c3d3e5135560902d3f07a419a999682cf1;hb=69ac3e7cf686f8e95e47a7ab89bc38796aace488;hp=ef723b51d143f6085394607b99c7e72c312186e2;hpb=6d3d50c17b24ef41f917f5776696eca810198092;p=hvlinux.git diff --git a/stage1/create-config-files b/stage1/create-config-files index ef723b5..0bc590c 100755 --- a/stage1/create-config-files +++ b/stage1/create-config-files @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash set -o errexit # Reading system configuration informations, functions and package versions. @@ -29,9 +29,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 +88,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