--- alx-src/branches/alxconf-060/bin/alx-hwdetection.sh 2011/07/06 23:27:35 2622 +++ alx-src/branches/alxconf-060/bin/alx-hwdetection.sh 2011/09/14 13:02:37 3201 @@ -139,6 +139,26 @@ remove_duplicates "${modules}" } +get_system_type() +{ + local hwinfo + local systemtype + + hwinfo="$(hwinfo --bios --storage)" + + if [[ ! -z $(echo "${hwinfo}" | grep -i zotac) ]] + then + systemtype="zotac" + elif [[ ! -z $(echo "${hwinfo}" | grep -i CLE266) ]] + then + systemtype="rangee" + else + systemtype="standard" + fi + + echo "${systemtype}" +} + # debug #echo "LAN: $(get_netcard_driver_modules eth0)" #echo "WLAN: $(get_wlan_driver_modules wlan0)" @@ -150,4 +170,5 @@ lan) get_netcard_driver_modules eth0 ;; vga) get_x11_driver_modules ;; console) get_drm_driver_modules ;; + system) get_system_type ;; esac