#!/bin/sh
ln -sf /etc/rc.d/init.d/x11 /etc/rc.d/rc5.d/S99x11 2>/dev/null
ln -sf /etc/rc.d/init.d/x11 /etc/rc.d/rc6.d/K97x11 2>/dev/null
ln -s /usr/bin/mbsession /home/root/.xinitrc 2>/dev/null
ln -s /usr/bin/mbsession /home/root/.xsession 2>/dev/null
if [ -f /home/root/.Xdefaults ]; then
  mv /home/root/.Xdefaults /home/root/.Xdefaults.def
  sed -e "s/loginShell:true/loginShell:false/g" -e "s/loginShell:True/loginShell:False/g" -e "s/loginShell: True/loginShell: False/g" -e "s/loginShell: true/loginShell: false/g" /home/root/.Xdefaults.def > /home/root/.Xdefaults
echo done.
