--- trunk/hwinfo/emulate-hwsetup.sh 2010/12/02 15:07:24 1213 +++ trunk/hwinfo/emulate-hwsetup.sh 2010/12/09 11:40:07 1225 @@ -45,6 +45,21 @@ return 0 } +# disable probeonly, load all modules by default +probeonly=0 + +# check getops +for i in $* +do + case $1 in + # ignoring -p,-v,-a,-s + -p|-v|-a|-s) shift;; + # only support dry-run + -n) shift; probeonly=1 ;; + esac + shift +done + echo -n "Autoconfiguring devices... " 1>&2 GFXCARD_INFO="$(${HWINFO} --gfxcard)" @@ -122,6 +137,12 @@ # add them to knoppix too addconfig knoppix "NETCARD_FULLNAME=\"${NETCARD_DESC[${i}]}\"" addconfig knoppix "NETCARD_DRIVER=\"${NETCARD_MODULE[${i}]}\"" + + # load the netcard modules + if [[ ${probeonly} = 0 ]] + then + modprobe -q "${NETCARD_MODULE[${i}]}" + fi done for ((i=0; i