mirror of
https://github.com/femtofox/femtofox.git
synced 2026-10-26 19:02:00 -04:00
add ttyd service
This commit is contained in:
parent
61532c87b2
commit
995732a7ce
2 changed files with 6 additions and 0 deletions
|
|
@ -37,6 +37,12 @@ echo "Installing dependencies for meshing-around and meshtastic cli..."
|
|||
pip3 install requests pyephem pytap2 meshtastic pypubsub geopy maidenhead beautifulsoup4 dadjokes schedule wikipedia googlesearch-python
|
||||
if [[ $? -eq 2 ]]; then echo "Error, step failed..."; fi
|
||||
|
||||
echo "Downloading ttyd and enabling service..."
|
||||
wget -qO- https://api.github.com/repos/tsl0922/ttyd/releases/latest | \
|
||||
grep "browser_download_url" | grep "armhf" | cut -d '"' -f 4 | xargs wget -O /opt/ttyd
|
||||
chmod +x /opt/ttyd
|
||||
systemctl enable ttyd
|
||||
|
||||
echo "Setting MOTD..."
|
||||
mv /etc/update-motd.d/10-help-text /etc/update-motd.d/10-help-text.bak
|
||||
mv /etc/update-motd.d/60-unminimize /etc/update-motd.d/60-unminimize.bak
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue