Skip to content

Instantly share code, notes, and snippets.

@emilcarr
emilcarr / display-ip.service
Created March 14, 2021 20:48
Display IP address on boot
# put me in /etc/systemd/system/display-ip.service
[Unit]
Description=Display IP address on boot
After=multi-user.target
After=network-online.target
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c "echo `ifconfig | awk '/inet /{print $2}'` > /dev/tty1"