source: clfs-embedded/BOOK/bootscripts/common/profile.xml@ d451637

Last change on this file since d451637 was 59d0399, checked in by Andrew Bradford <andrew@…>, 11 years ago

Update all bootscripts ch to use ${CLFS}/targetfs

  • Property mode set to 100644
File size: 1.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-scripts-profile">
9 <?dbhtml filename="profile.html"?>
10
11 <title>Creating /etc/profile</title>
12
13 <indexterm zone="ch-scripts-profile">
14 <primary sortas="e-/etc/profile">/etc/profile</primary>
15 </indexterm>
16
17 <para>Is the file that specifices how to your environment will function.</para>
18
19 <para os="a">Now we will create the profile file for use with our system:</para>
20
21<screen os="b"><userinput>cat &gt; ${CLFS}/targetfs/etc/profile&lt;&lt; "EOF"
22<literal># /etc/profile
23
24# Set the initial path
25export PATH=/bin:/usr/bin
26
27if [ `id -u` -eq 0 ] ; then
28 PATH=/bin:/sbin:/usr/bin:/usr/sbin
29 unset HISTFILE
30fi
31
32# Setup some environment variables.
33export USER=`id -un`
34export LOGNAME=$USER
35export HOSTNAME=`/bin/hostname`
36export HISTSIZE=1000
37export HISTFILESIZE=1000
38export PAGER='/bin/more '
39export EDITOR='/bin/vi'
40
41# End /etc/profile</literal>
42EOF</userinput></screen>
43
44</sect1>
Note: See TracBrowser for help on using the repository browser.