Adding two MOTD, one for before repair, one that is moved in after repair is successful.

This commit is contained in:
Roland 2024-10-13 14:24:11 -06:00
parent 0784f740bb
commit 2dd243230f
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 49 additions and 0 deletions

View file

@ -53,6 +53,8 @@ cp /opt/wrolpi/etc/raspberrypios/wrolpi-*.service /etc/systemd/system/
cp /opt/wrolpi/etc/raspberrypios/wrolpi.target /etc/systemd/system/
cp /opt/wrolpi/etc/raspberrypios/renderd.conf /etc/renderd.conf
cp /opt/wrolpi/etc/raspberrypios/motd_first /etc/motd
# NetworkManager for the hotspot.
systemctl enable NetworkManager

18
etc/raspberrypios/motd Normal file
View file

@ -0,0 +1,18 @@
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
██╗ ██╗██████╗ ██████╗ ██╗ ██████╗ ██╗
██║ ██║██╔══██╗██╔═══██╗██║ ██╔══██╗ ║
██║ █╗ ██║██████╔╝██║ ██║██║ ██████╔╝██
██║███╗██║██╔══██╗██║ ██║██║ ██╔═══╝ ██║
╚███╔███╔╝██║ ██║╚██████╔╝███████╗██║ ██║
╚══╝╚══╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
Run the help script to find potential problems:
/opt/wrolpi/help.sh
Help documentation is available here: /opt/wrolpi-help/docs

View file

@ -0,0 +1,24 @@
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
██╗ ██╗██████╗ ██████╗ ██╗ ██████╗ ██╗
██║ ██║██╔══██╗██╔═══██╗██║ ██╔══██╗ ║
██║ █╗ ██║██████╔╝██║ ██║██║ ██████╔╝██
██║███╗██║██╔══██╗██║ ██║██║ ██╔═══╝ ██║
╚███╔███╔╝██║ ██║╚██████╔╝███████╗██║ ██║
╚══╝╚══╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝
Welcome to your new WROLPi! Follow the steps below to finish the setup:
1. If you have an external drive, mount it to /media/wrolpi
2. Run the repair script: /opt/wrolpi/repair.sh
3. Refresh your files in the UI at https://wrolpi.local or https://127.0.0.1
Run the help script to find potential problems:
/opt/wrolpi/help.sh
Help documentation is available here: /opt/wrolpi-help/docs

View file

@ -51,6 +51,8 @@ cp /opt/wrolpi/etc/raspberrypios/wrolpi.target /etc/systemd/system/
# Enable first startup script.
systemctl enable wrolpi-first-startup.service
cp /opt/wrolpi/etc/raspberrypios/motd_first /etc/motd
# NetworkManager for the hotspot.
systemctl enable NetworkManager

View file

@ -137,6 +137,9 @@ chown wrolpi:wrolpi /media/wrolpi
chown -R wrolpi:wrolpi /home/wrolpi /opt/wrolpi*
# Copy MOTD once the repair has been successful.
cp /opt/wrolpi/etc/raspberrypios/motd /etc/motd
systemctl restart wrolpi-help
systemctl start wrolpi.target