Subversion Repositories livecd

Rev

Rev 103 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 103 Rev 125
Line 422... Line 422...
422
	mv /usr/X11R6/$LIB/modules/extensions/libglx.a /usr/X11R6/$LIB/modules/extensions/xxx.libglx.a.saved_by_nvidia
422
	mv /usr/X11R6/$LIB/modules/extensions/libglx.a /usr/X11R6/$LIB/modules/extensions/xxx.libglx.a.saved_by_nvidia
423
	ln -sf libglx.so.1.${nvidia_version} /usr/X11R6/$LIB/modules/extensions/libglx.so
423
	ln -sf libglx.so.1.${nvidia_version} /usr/X11R6/$LIB/modules/extensions/libglx.so
424
	# reconfigure X
424
	# reconfigure X
425
	/usr/sbin/nvidia-xconfig >> $NVLOG 2>&1
425
	/usr/sbin/nvidia-xconfig >> $NVLOG 2>&1
426
	if [ $PSI ]; then
426
	if [ $PSI ]; then
427
	    echo 'NVIDIA=on' >> /etc/sysconfig/cfengine
427
	    echo 'NVIDIA=on' >> /etc/sysconfig/psi
428
	fi
428
	fi
429
	echo "ok."
429
	echo "ok."
430
    fi
430
    fi
431
fi
431
fi
432
 
432
 
Line 490... Line 490...
490
	echo "done."
490
	echo "done."
491
    fi
491
    fi
492
    echo
492
    echo
493
fi
493
fi
494
 
494
 
495
### update AFS users and SEPP links (only for PSI)
495
### update AFS users and SEPP (only for PSI)
496
if [ $PSI ] && [ $AFS ]; then
496
if [ $PSI ] && [ $AFS ]; then
497
    echo "Update AFS users and SEPP links..."
497
    echo "Update AFS users..."
498
    [ -x /afs/psi.ch/sys/common/update_user.pl ] && /afs/psi.ch/sys/common/update_user.pl >/dev/null 2>&1 &
498
    [ -x /afs/psi.ch/sys/common/update_user.pl ] && /afs/psi.ch/sys/common/update_user.pl >/dev/null 2>&1 &
-
 
499
    if [ -d /usr/pack ]; then
-
 
500
	echo "Update SEPP links..."
499
    [ -x /afs/psi.ch/sys/common/update_sepp.pl ] && /afs/psi.ch/sys/common/update_sepp.pl >/dev/null 2>&1 &
501
	[ -x /afs/psi.ch/sys/common/update_sepp.pl ] && /afs/psi.ch/sys/common/update_sepp.pl >/dev/null 2>&1 &
-
 
502
    fi
500
    echo
503
    echo
501
fi
504
fi
502
 
505
 
503
### create local user, if "nolocal" is not set 
506
### create local user, if "nolocal" is not set 
504
if [ ! $NOLOCAL ]; then
507
if [ ! $NOLOCAL ]; then
Line 627... Line 630...
627
export HOSTNAME=$HOSTNAME
630
export HOSTNAME=$HOSTNAME
628
hostname $HOSTNAME
631
hostname $HOSTNAME
629
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
632
sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/network
630
if [ $PSI ]; then
633
if [ $PSI ]; then
631
    sed -i "s/hostname=.*/hostname=${HOSTNAME}.psi.ch/" /etc/ssmtp/ssmtp.conf
634
    sed -i "s/hostname=.*/hostname=${HOSTNAME}.psi.ch/" /etc/ssmtp/ssmtp.conf
632
    sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/cfengine
635
    sed -i "s/HOSTNAME=.*/HOSTNAME=${HOSTNAME}/" /etc/sysconfig/psi
633
fi
636
fi
634
for iface in eth0 eth1 eth2 eth3; do
637
for iface in eth0 eth1 eth2 eth3; do
635
    if [ -e /etc/sysconfig/network-scripts/ifcfg-${iface} ]; then
638
    if [ -e /etc/sysconfig/network-scripts/ifcfg-${iface} ]; then
636
	echo "DHCP_HOSTNAME=${HOSTNAME}" >> /etc/sysconfig/network-scripts/ifcfg-${iface}
639
	echo "DHCP_HOSTNAME=${HOSTNAME}" >> /etc/sysconfig/network-scripts/ifcfg-${iface}
637
    fi
640
    fi