Skip to content
Permalink
56266febf9
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 28 lines (23 sloc) 742 Bytes
#! /usr/bin/bash
while true; do
reply="$(/usr/sbin/checktrust)"
if [ "$reply" = "trusted" ]; then
break
elif [ "$reply" = "not trusted" ]; then
if [ -z "$XDOPID" ]; then
(while true; do xdotool search --sync --name bla windowraise; sleep 1; done) &
XDOPID=$!
fi
xdotool search --sync --name bla windowraise &
zenity --width 400 --error --title bla --text \
"<b>Loss of trust detected!</b>
Looks like your machine lost the trust of our network. Maybe it was offline for too long.
<i>You won't be able to log in.</i>
<b>Please contact IT Helpdesk</b>
helpdesk@molgen.mpg.de
phone: -1708"
continue
fi
sleep 5
done
test -n "$XDOPID" && kill $XDOPID