Files
dotfiles/bash_tools/helper.sh
T
2022-07-02 16:59:50 -04:00

8 lines
179 B
Bash

# get self-host server ip
SERVERIP=x.useless.pw
$(which ifconfig > /dev/null 2>&1) && \
ip=$(ifconfig | grep -Po "10.0.0.[01][0-9]+")
[ "$ip" != "" ] && SERVERIP=10.0.0.100