Initial commit

This commit is contained in:
ariane
2021-03-18 15:42:28 +00:00
committed by root
commit e53cb04f1a
973 changed files with 23055 additions and 0 deletions

3
profile.d/at-dbus-fix.sh Normal file
View File

@@ -0,0 +1,3 @@
if ! [ -e /usr/share/dbus-1/services/org.a11y.Bus.service ] ; then
export NO_AT_BRIDGE=1
fi

View File

@@ -0,0 +1,15 @@
# Check for interactive bash and that we haven't already been sourced.
if [ -n "${BASH_VERSION-}" -a -n "${PS1-}" -a -z "${BASH_COMPLETION_VERSINFO-}" ]; then
# Check for recent enough version of bash.
if [ ${BASH_VERSINFO[0]} -gt 4 ] || \
[ ${BASH_VERSINFO[0]} -eq 4 -a ${BASH_VERSINFO[1]} -ge 1 ]; then
[ -r "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion" ] && \
. "${XDG_CONFIG_HOME:-$HOME/.config}/bash_completion"
if shopt -q progcomp && [ -r /usr/share/bash-completion/bash_completion ]; then
# Source completion code.
. /usr/share/bash-completion/bash_completion
fi
fi
fi

10
profile.d/sshpwd.sh Normal file
View File

@@ -0,0 +1,10 @@
export TEXTDOMAIN=Linux-PAM
. gettext.sh
if [ -e /run/sshwarn ] ; then
echo
echo $(/usr/bin/gettext "SSH is enabled and the default password for the 'pi' user has not been changed.")
echo $(/usr/bin/gettext "This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.")
echo
fi

18
profile.d/wifi-check.sh Normal file
View File

@@ -0,0 +1,18 @@
(
export TEXTDOMAIN=wifi-check
. gettext.sh
if [ ! -x /usr/sbin/rfkill ] || [ ! -c /dev/rfkill ]; then
exit 0
fi
if ! /usr/sbin/rfkill list wifi | grep -q "Soft blocked: yes" ; then
exit 0
fi
echo
/usr/bin/gettext -s "Wi-Fi is currently blocked by rfkill."
/usr/bin/gettext -s "Use raspi-config to set the country before use."
echo
)