#!/bin/sh -x

# turn off network
mv /etc/resolv.conf /resolv.conf
rm /var/yp/ypdomain
chkconfig network off
chkconfig yp off

# clean up system for restart
rm /usr/people/xperf/log
rm /usr/people/xperf/.xperform
mv /usr/people/xperf/sgis /usr/people/xperf/.sgisession
echo > /etc/autologin.on

sleep 5

# restart!
init 6
