Magellan Linux

Diff of /trunk/installer/hwdetection.sh

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

revision 574 by niro, Wed Sep 12 18:44:05 2007 UTC revision 575 by niro, Wed Sep 12 18:50:51 2007 UTC
# Line 5  Line 5 
5  # get_hwinfo $hw_item  # get_hwinfo $hw_item
6  get_hwinfo()  get_hwinfo()
7  {  {
8     local enable_desc="0"
9    
10     if [[ $1 = --with-description ]] || [[ $1 = -d ]]
11     then
12     enable_desc=1
13     shift
14     fi
15    
16   local item="$1"   local item="$1"
17   local all   local all
18   local i   local i
# Line 17  get_hwinfo() Line 25  get_hwinfo()
25   (( i++ ))   (( i++ ))
26   [ ${i} -eq 1 ] && continue   [ ${i} -eq 1 ] && continue
27    
28   echo "${device};${description}"   if [[ ${enable_desc} = 1 ]]
29     then
30     echo "${device};${description}"
31     else
32     echo "${device}"
33     fi
34   done <<< "${all}"   done <<< "${all}"
35  }  }
36    
# Line 145  create_initrd() Line 158  create_initrd()
158  # done  # done
159    
160  #create_initrd /root/TEST/initrd  #create_initrd /root/TEST/initrd
161  get_driver_modules cdrom  #get_driver_modules cdrom
162  #get_driver_modules disk  #get_driver_modules disk
163  #get_driver_modules scsi  #get_driver_modules scsi
164  #get_driver_modules all  #get_driver_modules all
165    
166  # network  # network
167  #get_hwinfo netcard  #get_hwinfo --with-description netcard
168  #get_driver_modules netcard  #get_driver_modules netcard
169    
170  #get_hwinfo disk  #get_hwinfo disk

Legend:
Removed from v.574  
changed lines
  Added in v.575