mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-21 19:52:52 +00:00
Add 9.7 - Add shell startup file
This commit is contained in:
parent
09bd417942
commit
1903f0e5f0
2 changed files with 21 additions and 0 deletions
9
scripts/chapter9/9.7-shell-startup.sh
Normal file
9
scripts/chapter9/9.7-shell-startup.sh
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cat > /etc/profile << "EOF"
|
||||||
|
# Begin /etc/profile
|
||||||
|
|
||||||
|
export LANG=en_IN.UTF-8
|
||||||
|
|
||||||
|
# End /etc/profile
|
||||||
|
EOF
|
|
@ -1511,3 +1511,15 @@ then
|
||||||
stop_script "chapter9/9.6-configure-sysvinit.sh"
|
stop_script "chapter9/9.6-configure-sysvinit.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Chapter 9.7
|
||||||
|
# ===========
|
||||||
|
echo "Configurintg shell startup files"
|
||||||
|
su -c "bash $SCRIPT/chapter9/9.7-shell-startup.sh"
|
||||||
|
|
||||||
|
# Exit on error
|
||||||
|
check_exit_code
|
||||||
|
if [ $exit_status -ne 0 ]
|
||||||
|
then
|
||||||
|
stop_script "chapter9/9.7-shell-startup.sh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue