echo 'looking for DHCP servers...'
for atyu in `ifconfig | awk -F ":" '/mtu/ {print $1}'`
do
if [ x"$atyu" == x"lo0" -o x"$atyu" == x"pflog0" -o x"$atyu" == x"enc0" ]
then atyu=atyu # null execution
else dhclient $atyu
fi
done
# Start X environment?
echo -n 'Do you want to have a [G]raphical environment or [C]onsole only: '
read ans
if [ X"$ans" == X"G" -o X"$ans" == X"g" -o X"$ans" == X"Graphical" ] ; then
# Configure X
echo 'Configuring X'
/usr/X11R6/bin/X -configure >/tmp/X-configure.log 2>&1
if [ X"$?" -eq X"0" ] ; then
cp /xorg.conf.new /etc/X11/xorg.conf
chmod 644 /etc/X11/xorg.conf
else
echo 'FAILED will use default xorg.conf'
fi
rm -f /tmp/.X11-unix/* # Remove stale socket!
xdm_flags="" # Start xdm
fi
阅读(1385) | 评论(0) | 转发(0) |