Skip to content

Instantly share code, notes, and snippets.

@mamemomonga
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamemomonga/abcb2c278e689656b595 to your computer and use it in GitHub Desktop.
Save mamemomonga/abcb2c278e689656b595 to your computer and use it in GitHub Desktop.
Print the IP address( from raspbian /etc/rc.local )
# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
printf "My IP address is %s\n" "$_IP"
fi
# Debianで起動後画面を消さないなら
vim /etc/inittab
1:2345:respawn:/sbin/getty --noclear 38400 tty1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment