Skip to content

Commit

Permalink
Future3 add login motd with note about venv (#2225)
Browse files Browse the repository at this point in the history
* add ssh welcome script

* changed message

* moved login message setup

* fix sudo on copy

* update message

* fix typo in filename
  • Loading branch information
AlvinSchiller authored Feb 1, 2024
1 parent c306719 commit 85587a6
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/developers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Getting started

* [Development Environment](./development-environment.md)
* [Python Development Notes](pyhton.md)
* [Python Development Notes](python.md)

## Reference

Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions installation/routines/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ install() {
setup_rfid_reader
optimize_boot_time
setup_autohotspot
setup_login_message
cleanup
}
4 changes: 4 additions & 0 deletions installation/routines/set_raspi_config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ _run_set_raspi_config() {
set_raspi_config() {
run_with_log_frame _run_set_raspi_config "Set default raspi-config"
}

setup_login_message() {
sudo cp -f "${INSTALLATION_PATH}/resources/system/99-rpi-jukebox-rfid-welcome" "/etc/update-motd.d/99-rpi-jukebox-rfid-welcome"
}
16 changes: 16 additions & 0 deletions resources/system/99-rpi-jukebox-rfid-welcome
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

echo "
#########################################################
___ __ ______ _ __________ ____ __ _ _
/ _ \/ // / __ \/ |/ / _/ __/( _ \ / \( \/ )
/ ___/ _ / /_/ / // // _/ ) _ (( O )) (
/_/ /_//_/\____/_/|_/___/____/ (____/ \__/(_/\_)
future3
If you want to run a python script from the project
activate the venv before with `source .venv/bin/activate`
See also https://github.com/MiczFlor/RPi-Jukebox-RFID/
blob/future3/main/documentation/developers/python.md
#########################################################"

0 comments on commit 85587a6

Please sign in to comment.