mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-11-09 15:09:44 +00:00
Add 9.9 - Add /etc/shells
This commit is contained in:
parent
d918eba6a9
commit
9999644502
2 changed files with 23 additions and 0 deletions
11
scripts/chapter9/9.9-shells.sh
Normal file
11
scripts/chapter9/9.9-shells.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
#!/bin/bash
|
||||
|
||||
cat > /etc/shells.sh << "EOF"
|
||||
# Begin /etc/shells
|
||||
|
||||
/bin/sh
|
||||
/bin/bash
|
||||
|
||||
# End /etc/shells
|
||||
EOF
|
||||
|
|
@ -1535,3 +1535,15 @@ then
|
|||
stop_script "chapter9/9.8-inputrc.sh"
|
||||
fi
|
||||
|
||||
# Chapter 9.9
|
||||
# ===========
|
||||
echo "Creating /etc/shells"
|
||||
su -c "bash $SCRIPT/chapter9/9.9-shells.sh"
|
||||
|
||||
# Exit on error
|
||||
check_exit_code
|
||||
if [ $exit_status -ne 0 ]
|
||||
then
|
||||
stop_script "chapter9/9.9-shells.sh"
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue