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

View File

@@ -125,11 +125,6 @@ esac
# others:
# \w shows absolute path, \W shows current folder.
if [ "$(uname)" = "Darwin" ]; then
MYIPLAN=$(ifconfig en0 | grep "inet " | awk '{print $2}')
else
MYIPLAN=$(echo `hostname -I` | awk '{print $1;}')
fi
MYIPPUB=$(curl -s ifconfig.me)
if [ "$(uname)" = "Darwin" ]; then

View File

@@ -1 +1,2 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIB9nZPBhGH8Fq40bkFsxsH3kd73PG+nR5bQAqwQQKUfw adot@tic.cc
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII8ma6WKwCD3vg+OKgofH9ZOSYxWAbrk9IKlM8tqjEEM adot@doomship