gdmdynamic revision 17291
optype=""
oparg=""
for i in "$@"
do
if [ ! "x$optype" = "x" ]; then
oparg=$i
break
fi
if [ "x$i" = "x-a" ]; then
optype="add"
continue
fi
if [ "x$i" = "x-d" ]; then
optype="delete"
continue
fi
if [ "x$i" = "x-l" ]; then
optype="list"
break
fi
done
add)
;;
# gdmdynamic -d 10
ssid=`$LIST_TOOL -f session-id,x11-display,display-type | grep Sunray | $SED -e s/\'//g | $AWK -v disp=:$oparg '{if ($2 == disp) print $1}'`
if [ ! "x$ssid" = "x" ]; then
fi
;;
list)
# gdmdynamic -l
sessions=`$LIST_TOOL -f session-id,x11-display,display-type | grep Sunray | $AWK '{print $2}' | $SED -e s/\'//g`
dyps=""
do
if [ ! "x$i" = "x" ]; then
fi
done
echo $dyps
;;
esac