Add custom motd

This commit is contained in:
Mario Romero 2023-09-29 00:08:33 -03:00
parent f013400c34
commit 018b2f7225
4 changed files with 25 additions and 0 deletions

View File

@ -31,5 +31,8 @@ RUN mkdir -p .scripts
COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts
ENV PATH="/home/designer/.scripts:${PATH}"
# Add motd
RUN echo "/home/designer/.bashrc" >> "custom_motd"
# Initialize the enviroment keeping container alive
ENTRYPOINT ["start_desktop"]

20
scripts/custom_motd Normal file
View File

@ -0,0 +1,20 @@
#!/bin/bash
cat << EOF
__ __
__ /\ \__ /\ \
___ ____/\_\ ___ ____\ \ ,_\ __ ___\ \ \/'\ ____
/ __`\ /',__\/\ \ /'___\ /',__\\ \ \/ /'__`\ /'___\ \ , < /',__\
/\ \L\ \/\__, `\ \ \/\ \__/ /\__, `\\ \ \_/\ \L\.\_/\ \__/\ \ \\`\ /\__, `\
\ \____/\/\____/\ \_\ \____\ \/\____/ \ \__\ \__/.\_\ \____\\ \_\ \_\/\____/
\/___/ \/___/ \/_/\/____/ \/___/ \/__/\/__/\/_/\/____/ \/_/\/_/\/___/
EOF
if [[ -z "${PDK} "]]
cat << EOF
There is not an active PDK, Use:
volare_set_latest <pdk_variant>
to automatically download and configure the latest version of a PDK.
You can also manually configure a PDK using volare and setting the PDK environment variable
EOF
fi

View File

@ -1,2 +1,3 @@
#!/bin/bash
setwallpaper /home/designer/.media/defaultwallpaper.png
xfce4-terminal

View File

@ -1,4 +1,5 @@
#!/bin/bash
if [[ -z "$1"]]; then PDK=$1 fi
if [[ -z "${PDK}" ]]; then
PDK_VERSION=$(volare ls-remote --pdk $PDK | sed -n '1 p')
volare enable --pdk $PDK $PDK_VERSION