Thanks Craig!
We must have a mental telepathy thing going! I came up with the same solution,
a little different code, as you suggested. Guess I should check the forum more
oftern!
I like getting the full model id rather than hacking the CID. The result is the
same, but I may want to use this code in other situations where the model id
would be preferred.
RFE: could this type stuff be set in the Kiosk user's environment along with
SUN_SUNRAY_TOKEN??
Here's my code:
#!/usr/bin/bash
myDISP=$(echo ${DISPLAY} | sed 's/.*:\([^.]*\).*/\1/')
eval $(sed -n 'MODEL_ID/p' /tmp/SUNWut/config/dispinfo/${myDISP})
case ${MODEL_ID} in
"SunRayS1") ;; # do nothing
*) echo "do something" ;;
esac
# End script
Thanks again!
Art
Sent from my iPad
_______________________________________________
SunRay-Users mailing list
[email protected]
http://www.filibeto.org/mailman/listinfo/sunray-users