mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
rename archboot-bash to custom-bash
This commit is contained in:
parent
1499de86cd
commit
afcc1c806e
4 changed files with 8 additions and 8 deletions
|
@ -230,16 +230,16 @@ _auto_nano_syntax() {
|
|||
}
|
||||
|
||||
_auto_bash(){
|
||||
if [[ ! -f ${_DESTDIR}/etc/profile.d/archboot-bash-prompt.sh ]]; then
|
||||
_dialog --infobox "Enable archboot's bash prompt on installed system..." 3 70
|
||||
! grep -qw 'archboot-bash-prompt.sh' "${_DESTDIR}/etc/bash.bashrc" &&\
|
||||
echo ". /etc/profile.d/archboot-bash-prompt.sh" >> "${_DESTDIR}/etc/bash.bashrc"
|
||||
if [[ ! -f ${_DESTDIR}/etc/profile.d/custom-bash-prompt.sh ]]; then
|
||||
_dialog --infobox "Enable custom bash prompt on installed system..." 3 70
|
||||
! grep -qw 'custom-bash-prompt.sh' "${_DESTDIR}/etc/bash.bashrc" &&\
|
||||
echo ". /etc/profile.d/custom-bash-prompt.sh" >> "${_DESTDIR}/etc/bash.bashrc"
|
||||
cp /etc/profile.d/archboot-bash-prompt.sh "${_DESTDIR}"/etc/profile.d/
|
||||
sleep 2
|
||||
fi
|
||||
if [[ ! -f ${_DESTDIR}/etc/profile.d/archboot-bash-aliases.sh ]]; then
|
||||
_dialog --infobox "Enable archboot's bash aliases on installed system..." 3 70
|
||||
cp /etc/profile.d/archboot-bash-aliases.sh "${_DESTDIR}"/etc/profile.d/
|
||||
_dialog --infobox "Enable custom bash aliases on installed system..." 3 70
|
||||
cp /etc/profile.d/custom-bash-aliases.sh "${_DESTDIR}"/etc/profile.d/
|
||||
sleep 2
|
||||
fi
|
||||
}
|
||||
|
|
|
@ -60,10 +60,10 @@ build ()
|
|||
# use color bash prompt
|
||||
# unlock and delete root password, if not set by user!
|
||||
# use color grep and ls output
|
||||
for i in archboot-bash-prompt.sh archboot-reset-root-password.sh archboot-bash-aliases.sh; do
|
||||
for i in custom-bash-prompt.sh archboot-reset-root-password.sh custom-bash-aliases.sh; do
|
||||
add_file "/usr/share/archboot/base/etc/profile.d/$i" "/etc/profile.d/$i"
|
||||
done
|
||||
echo ". /etc/profile.d/archboot-bash-prompt.sh" >> "$BUILDROOT/etc/bash.bashrc"
|
||||
echo ". /etc/profile.d/custom-bash-prompt.sh" >> "$BUILDROOT/etc/bash.bashrc"
|
||||
### add kmod related config file(s)
|
||||
add_file "/usr/lib/depmod.d/search.conf"
|
||||
|
||||
|
|
Loading…
Reference in a new issue