2021-08-04 05:21:14 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
PORT=5460
|
|
|
|
|
|
|
|
case $1 in
|
|
|
|
start)
|
|
|
|
./xrxs -s xrxs & sleep 1
|
2021-10-13 15:48:33 +00:00
|
|
|
9pserve -c unix!/tmp/ns.$(whoami).${DISPLAY}/xrxs tcp!0.0.0.0!${PORT} &
|
2021-08-04 05:21:14 +00:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
killall xrxs
|
2021-10-13 15:48:33 +00:00
|
|
|
rm /tmp/ns.$(whoami).${DISPLAY}/xrxs
|
2021-08-04 05:21:14 +00:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "$0 start|stop"
|
|
|
|
echo " start: run the xrxs service in the background"
|
|
|
|
echo " stop: terminates xrxs services"
|
|
|
|
;;
|
|
|
|
esac
|