# Calculate comment=# chmod=0755
#!/bin/sh
#
#?pkg(sys-apps/calculate-utils[desktop])!=#
sleep 1
if pgrep -f 'xdm/xdm --logout'
then
	xmessage -buttons "" "Please wait to ending sessions" &
	XMESPID=$!
	for i in {1..500}
	do
		if pgrep -f 'xdm/xdm --logout' &>/dev/null
		then
			sleep 1
		else
			break
		fi
	done
	kill -9 $XMESPID &>/dev/null
fi
#!pkg#
# Note: this is a sample and will not be run as is.
#pkg#
