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)" |
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 |