xrxs/uxn-client/uxn-xrxs.sh

22 lines
388 B
Bash
Raw Permalink Normal View History

#!/bin/sh
ADDR=209.141.55.64
PORT=5460
2021-10-13 15:49:56 +00:00
if [ ! -d ./n ]; then
mkdir ./n
fi
2021-10-13 06:25:16 +00:00
# start the 9p client and wait for it to initialize
9pfuse "tcp!${ADDR}!${PORT}" ./n & sleep 1
#run the xrxs client
uxnemu ./xrxs.rom
2021-10-13 06:25:16 +00:00
# logout **VERY IMPORTANT**
# if you don't logout, your username is taken until the server restarts!
if [ -e ./n/ctl ]; then
echo "logout" >> ./n/ctl
fi
fusermount -u ./n