Magellan Linux

Diff of /alx-src/branches/alxconf-060/bin/alx-hwdetection.sh

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

revision 3200 by niro, Wed Jul 6 23:27:35 2011 UTC revision 3201 by niro, Wed Sep 14 13:02:37 2011 UTC
# Line 139  get_netcard_driver_modules() Line 139  get_netcard_driver_modules()
139   remove_duplicates "${modules}"   remove_duplicates "${modules}"
140  }  }
141    
142    get_system_type()
143    {
144     local hwinfo
145     local systemtype
146    
147     hwinfo="$(hwinfo --bios --storage)"
148    
149     if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]]
150     then
151     systemtype="zotac"
152     elif [[ ! -z $(echo "${hwinfo}" | grep -i CLE266) ]]
153     then
154     systemtype="rangee"
155     else
156     systemtype="standard"
157     fi
158    
159     echo "${systemtype}"
160    }
161    
162  # debug  # debug
163  #echo "LAN:    $(get_netcard_driver_modules eth0)"  #echo "LAN:    $(get_netcard_driver_modules eth0)"
164  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"  #echo "WLAN:   $(get_wlan_driver_modules wlan0)"
# Line 150  case $1 in Line 170  case $1 in
170   lan) get_netcard_driver_modules eth0 ;;   lan) get_netcard_driver_modules eth0 ;;
171   vga) get_x11_driver_modules ;;   vga) get_x11_driver_modules ;;
172   console) get_drm_driver_modules ;;   console) get_drm_driver_modules ;;
173     system) get_system_type ;;
174  esac  esac

Legend:
Removed from v.3200  
changed lines
  Added in v.3201