chiark / gitweb /
bin/wakey.sh: Cope if the `_NET_ACTIVE_WINDOW' property is missing.
[profile] / bin / guest-console
CommitLineData
73bb9001
MW
1#! /usr/bin/kermit +
2
3take /etc/kermit/kermrc
4
5set exit on-disconnect on
6
7def GUESTDIR /mnt/guests
8if def \$(GUESTDIR) assign GUESTDIR \$(GUESTDIR)
9
10local guest
11if != \v(argc) 2 -
12 exit 1 Usage: GUEST [user/]guest
13assign guest \%1
14if not match {\m(guest)} */* -
15 assign guest \v(userid)/\m(guest)
16
17pipe nc -U \m(GUESTDIR)/\m(guest)/console