add doomship key

This commit is contained in:
luk
2026-04-28 19:37:38 +08:00
parent a94b938ba6
commit e0c2452562
3 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,7 @@
if [ "$(uname)" = "Darwin" ]; then
echo Local IP: $(ifconfig en0 | grep "inet " | awk '{print $2}')
elif [ "$(uname)" = "FreeBSD" ]; then
MYIPLAN='' # hostname -I not work in FreeBSD
else
echo Local IP: $(echo `hostname -I` | awk '{print $1;}')
fi