Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
show-trust-warning: Use checktrust command
Browse files Browse the repository at this point in the history
donald committed Jul 9, 2020
1 parent 498bdef commit 337fd79
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions lightdm/show-trust-warning
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
#! /usr/bin/bash

while true; do
for host in wtf afk pummelfee; do
reply="$(netcat -w 1 $host 236 </dev/null)"
if [ "$reply" = "I trust you" -o "$reply" = "I don't trust you" ]; then
break
fi
done
if [ "$reply" = "I trust you" ]; then
reply="$(/usr/sbin/checktrust)"
if [ "$reply" = "trusted" ]; then
break
elif [ "$reply" = "I don't trust you" ]; then
elif [ "$reply" = "not trusted" ]; then
if [ -z "$XDOPID" ]; then
(while true; do xdotool search --sync --name bla windowraise; sleep 1; done) &
XDOPID=$!

0 comments on commit 337fd79

Please sign in to comment.