|
|
@ -376,6 +376,7 @@ while [[ 1 == 1 ]]; do
|
|
|
|
udisplay=":${index}"
|
|
|
|
udisplay=":${index}"
|
|
|
|
if [[ $lverify == $cverify ]]; then
|
|
|
|
if [[ $lverify == $cverify ]]; then
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
|
|
|
|
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false"
|
|
|
|
/opt/kde3/bin/kdmctl activate $udisplay
|
|
|
|
/opt/kde3/bin/kdmctl activate $udisplay
|
|
|
|
else
|
|
|
|
else
|
|
|
|
echo "EUnauthorized SmartCard Inserted" > /tmp/ksocket-global/kdesktoplockcontrol &
|
|
|
|
echo "EUnauthorized SmartCard Inserted" > /tmp/ksocket-global/kdesktoplockcontrol &
|
|
|
@ -467,6 +468,7 @@ while [[ 1 == 1 ]]; do
|
|
|
|
while [[ $OUTPUT -eq 0 ]]; do
|
|
|
|
while [[ $OUTPUT -eq 0 ]]; do
|
|
|
|
sleep 1
|
|
|
|
sleep 1
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface quit"
|
|
|
|
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable false"
|
|
|
|
echo "exit" | scriptor 2>/dev/null 1>/dev/null
|
|
|
|
echo "exit" | scriptor 2>/dev/null 1>/dev/null
|
|
|
|
OUTPUT=$?
|
|
|
|
OUTPUT=$?
|
|
|
|
if [[ $smartcard_slave == "SLAVE" ]]; then
|
|
|
|
if [[ $smartcard_slave == "SLAVE" ]]; then
|
|
|
@ -586,6 +588,7 @@ while [[ 1 == 1 ]]; do
|
|
|
|
blankresult=""
|
|
|
|
blankresult=""
|
|
|
|
while [[ $blankresult != "true" ]]; do
|
|
|
|
while [[ $blankresult != "true" ]]; do
|
|
|
|
/opt/kde3/bin/kdmctl -g activate $udisplay
|
|
|
|
/opt/kde3/bin/kdmctl -g activate $udisplay
|
|
|
|
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface enable true"
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface lock"
|
|
|
|
su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface lock"
|
|
|
|
blankresult=$(su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface isBlanked")
|
|
|
|
blankresult=$(su $smartcard_username -c "export DISPLAY=$udisplay; /opt/kde3/bin/dcop kdesktop KScreensaverIface isBlanked")
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|
if [[ $? != 0 ]]; then
|
|
|
|