i think that we can ask user which module to load and use explicit value or all matching modules.
example:
$ cat select.sh #!/bin/zsh
tempfile="$(mktemp)" dialog --menu "select module" 15 70 5 pata_jmicron "new libata based" jmicron "legacy" 2>${tempfile} if [ $? -eq 0 ]; then echo "[loading $(cat $tempfile)]" else # cancel/esc. echo "[loading all modules...]" fi
i think that we can ask user which module to load and use explicit value or all matching modules.
example:
$ cat select.sh
#!/bin/zsh
tempfile= "$(mktemp) "
dialog --menu "select module" 15 70 5 pata_jmicron "new libata based" jmicron "legacy" 2>${tempfile}
if [ $? -eq 0 ]; then
echo "[loading $(cat $tempfile)]"
else
# cancel/esc.
echo "[loading all modules...]"
fi