#!/bin/sh

# change permissions on X11 socket since some 2.4 kernels create it as 755
chmod 777 /tmp/.X11-unix/X0

/usr/X11R6/bin/xsetroot -solid black

/IBM/bin/readNvram 43
/IBM/bin/readNvram 78


# read lang from nvram so Sessions/Common/SessionLang can read it later
/IBM/bin/readNvram 106

if [ `cat /tmp/snmp/43` = "1" -o `cat /tmp/snmp/78` = "1" ]; then

   /usr/X11R6/bin/xterm -title "Flash Update" -fg white -bg black +sb -e /etc/rc.d/rc.IBM_NS.flash 
  
fi

if [ -z "`grep "AutomaticLogin=" /etc/X11/gdm/gdm.conf | sed 's/^AutomaticLogin=//'`" ]; then

   # This machine does not have an "automatic login" configuration. Set
   # the background image for the login prompt. Do not do this for 
   # automatic login configurations.

   /usr/X11R6/bin/xloadimage  -quiet -fullscreen -onroot /IBM/ibm-tux.jpg
fi



