Skip to content

Instantly share code, notes, and snippets.

View MKnkgw's full-sized avatar

Maki Komuro MKnkgw

View GitHub Profile
@MKnkgw
MKnkgw / ipaddr.sh
Last active December 22, 2015 18:09
ipアドレスをi2cのディスプレイに表示させたい
#!/bin/sh
LCD=0x3e
NETWORK=eth0
LANG=
IP=`/sbin/ifconfig $NETWORK | grep "inet addr:" | cut -f2 -d : | cut -f1 -d " "`
echo "IP: $IP"