Skip to content

Instantly share code, notes, and snippets.

@Tiryoh
Last active October 19, 2022 00:42
Show Gist options
  • Save Tiryoh/aba7f6119b89127279c033cb34fd581b to your computer and use it in GitHub Desktop.
Save Tiryoh/aba7f6119b89127279c033cb34fd581b to your computer and use it in GitHub Desktop.
systemctl service to show IP address on Mini Pupper LCD
[Unit]
Description=Display IP Address on MiniPupper LCD
Requires=NetworkManager-wait-online.service
After=NetworkManager-wait-online.service
[Service]
Type=forking
ExecStart=python3 -c "from MangDang.mini_pupper.display import Display ; disp = Display(); disp.show_ip();"
[Install]
WantedBy=multi-user.target
# This service depends on https://github.com/mangdangroboticsclub/mini_pupper_bsp
# and cannot use with https://github.com/mangdangroboticsclub/StanfordQuadruped at the same time
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2022 Daisuke Sato
@Tiryoh
Copy link
Author

Tiryoh commented Oct 14, 2022

Usage

wget https://gist.githubusercontent.com/Tiryoh/aba7f6119b89127279c033cb34fd581b/raw/mini_pupper_display_ip.service
sudo mv mini_pupper_display_ip.service /lib/systemd/system/
sudo systemctl enable mini_pupper_display_ip.service
sudo systemctl start mini_pupper_display_ip.service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment