/[fai]/trunk/share/subroutines-linux
ViewVC logotype

Diff of /trunk/share/subroutines-linux

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1317 by lange, Fri Nov 22 14:29:18 2002 UTC revision 1318 by lange, Wed Nov 27 17:55:07 2002 UTC
# Line 264  task_chboot() { Line 264  task_chboot() {
264              "cd /boot/fai; rm -f $HOSTNAME; ln -s $TFTPLINK $HOSTNAME"              "cd /boot/fai; rm -f $HOSTNAME; ln -s $TFTPLINK $HOSTNAME"
265  }  }
266  # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 task_sysinfo() {  
   
     echo The defined classes are:  
     echo $classes  
     echo The classes are also saved in $LOGDIR/FAI_CLASSES  
   
     # show some system information and save it on the server  
     lspci  
     lsdev  
     echo "Ethernet cards found: $netdevices_all"  
     echo "Ethernet cards running: $netdevices_up"  
     ifconfig -a  
   
     echo -n "xserver for graphic card: ";  
     [ -x /usr/bin/xviddetect ] && xviddetect -q  
     [ -x /sbin/discover ] && {  
       discover --xdriver video  
       discover ethernet cdrom scsi sound video  
       discover --module ethernet cdrom scsi sound video  
     }  
     [ -x /usr/sbin/kudzu ] && kudzu -q  
     if [ -x /usr/sbin/detect ]; then  
        cd $LOGDIR  
        detect && cat report.txt  
     fi  
   
     [ -f /proc/scsi/scsi ] && cat /proc/scsi/scsi  
     cat /proc/partitions  
     disk_info  
     local disk  
     for disk in $disklist; do  
         hdparm -iv /dev/$disk  
         fdisk -s /dev/$disk  
         LC_ALL=C file -s /dev/$disk?* | grep -v ": empty"  
     done  
     fdisk -lu  
     #si -p -o shm  
     mount_local_disks  
     fstab_mount  
   
     load_keymap_consolechars  
   
     save_dmesg  
     save_log_remote  
     task_faiend  
 }  

Legend:
Removed from v.1317  
changed lines
  Added in v.1318

  ViewVC Help
Powered by ViewVC 1.1.5