finger/nouser

79 lines
1.3 KiB
Plaintext
Raw Normal View History

2019-08-11 18:54:10 +00:00
#!/bin/sh
#. /etc/efingerd/log
if [ "$1" = "(null)" ]; then
2019-09-10 12:14:36 +00:00
printf "hello %s,\n" "$2"
2019-08-11 18:54:10 +00:00
else
2019-09-10 12:14:36 +00:00
printf "hello %s@%s\n" "$1" "$2"
2019-08-11 18:54:10 +00:00
fi
2019-09-10 12:14:36 +00:00
2019-08-11 18:54:10 +00:00
if [ "$3" = "time" ]; then
2019-09-10 12:14:36 +00:00
printf 'The time is...\n'
2019-08-11 18:54:10 +00:00
date
exit 0
fi
if [ "$3" = "envs" ]; then
2019-09-10 12:14:36 +00:00
printf "envs 4 a live\n"
2019-08-11 18:54:10 +00:00
exit 0
fi
if [ "$3" = "tilde" ]; then
2019-09-10 12:14:36 +00:00
printf "a tilde 4 u a tilde 4 me\n"
2019-08-11 18:54:10 +00:00
exit 0
fi
if [ "$3" = "ping" ]; then
2019-09-10 12:14:36 +00:00
printf "PONG!\n"
2019-08-11 18:54:10 +00:00
ping -c 5 "$2"
exit 0
fi
if [ "$3" = "fortune" ]; then
/usr/games/fortune
exit 0
fi
if [ "$3" = "uptime" ]; then
/usr/bin/uptime
exit 0
fi
if [ "$3" = "uname" ]; then
/bin/uname --all
exit 0
fi
if [ "$3" = "new" ]; then
2019-09-10 12:14:36 +00:00
printf "visit https://envs.net/signup/ to request an account\n"
2019-08-11 18:54:10 +00:00
exit 0
fi
if [ "$3" = "signup" ]; then
2019-09-10 12:14:36 +00:00
printf "https://envs.net/signup/\n"
2019-08-11 18:54:10 +00:00
exit 0
fi
if [ "$3" = "gopher" ]; then
2019-09-10 12:14:36 +00:00
printf "try port 70\n"
2019-08-11 18:54:10 +00:00
exit 0
fi
2019-09-10 12:14:36 +00:00
printf "you've reached\n"
2019-08-11 18:54:10 +00:00
figlet -f smslant envs.net
cat <<EOM
envs.net is a minimalist, non-commercial
shared unix system and will always be free to use.
we are linux lovers, sysadmins, programmer and users who like build
webpages, write blogs, chat online, play cool console games and so much
more. you wish to join with an small user space?
join the team today!
https://envs.net/signup/
https://envs.net/
EOM