rename archboot-bash to custom-bash

This commit is contained in:
Tobias Powalowski 2023-01-30 07:34:30 +01:00
parent 1499de86cd
commit afcc1c806e
4 changed files with 8 additions and 8 deletions

View file

@ -230,16 +230,16 @@ _auto_nano_syntax() {
} }
_auto_bash(){ _auto_bash(){
if [[ ! -f ${_DESTDIR}/etc/profile.d/archboot-bash-prompt.sh ]]; then if [[ ! -f ${_DESTDIR}/etc/profile.d/custom-bash-prompt.sh ]]; then
_dialog --infobox "Enable archboot's bash prompt on installed system..." 3 70 _dialog --infobox "Enable custom bash prompt on installed system..." 3 70
! grep -qw 'archboot-bash-prompt.sh' "${_DESTDIR}/etc/bash.bashrc" &&\ ! grep -qw 'custom-bash-prompt.sh' "${_DESTDIR}/etc/bash.bashrc" &&\
echo ". /etc/profile.d/archboot-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/ cp /etc/profile.d/archboot-bash-prompt.sh "${_DESTDIR}"/etc/profile.d/
sleep 2 sleep 2
fi fi
if [[ ! -f ${_DESTDIR}/etc/profile.d/archboot-bash-aliases.sh ]]; then if [[ ! -f ${_DESTDIR}/etc/profile.d/archboot-bash-aliases.sh ]]; then
_dialog --infobox "Enable archboot's bash aliases on installed system..." 3 70 _dialog --infobox "Enable custom bash aliases on installed system..." 3 70
cp /etc/profile.d/archboot-bash-aliases.sh "${_DESTDIR}"/etc/profile.d/ cp /etc/profile.d/custom-bash-aliases.sh "${_DESTDIR}"/etc/profile.d/
sleep 2 sleep 2
fi fi
} }

View file

@ -60,10 +60,10 @@ build ()
# use color bash prompt # use color bash prompt
# unlock and delete root password, if not set by user! # unlock and delete root password, if not set by user!
# use color grep and ls output # 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" add_file "/usr/share/archboot/base/etc/profile.d/$i" "/etc/profile.d/$i"
done 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 kmod related config file(s)
add_file "/usr/lib/depmod.d/search.conf" add_file "/usr/lib/depmod.d/search.conf"