Wachalarm-Monitor/home/.bash_profile
2022-12-27 11:01:27 +01:00

18 lines
454 B
Bash

#!/bin/bash
# source the user's bashrc if it exists
if [ -f "${HOME}/.bashrc" ] ; then
source "${HOME}/.bashrc"
fi
# If this is a tty, and the one where we want to run X, do so
if [ "$(tty)" == "/dev/tty1" ]; then
# Redirect any output so it doesn't briefly appear when starting X
exec startx >/dev/null 2>&1
fi
# If this is a tty, and the one where we want to run raspi-config, do so
if [ "$(tty)" == "/dev/tty2" ]; then
sudo raspi-config
fi