summaryrefslogtreecommitdiff
path: root/examples/p2p-im/tlsd-im-reconnect.sh
blob: 3fc149f9e9fd7b7932e9af15bc0e152020c564bf (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh

CHATDIR="/var/lib/tlsd-im/"

for DIR in $(find "${CHATDIR}" -maxdepth 1 -mindepth 1 -type d)
do  if [ -f "${DIR}/address" ]
    then flock -n "${DIR}/lock" cat "${DIR}/address" > "${CHATDIR}connect"
    fi
done