Bug#232670: I tried that
I have tried that with --default-item but the result is not desirable.
I changed two lines to /usr/sbin/modconf in function interactive_main():
I changed
echo 'menu "$text" "$msg_Select_Category" \' > $TempFile
to
echo 'menu "$text" $default_category "$msg_Select_Category" \' >
$TempFile
and added
default_category=" --default-item $directory "
to this block:
*)
module_directory_menu "$directory" \
"$msg_Select_modules_l" "`eval echo \\\"$msg_Select_modules\\\"`"
default_category=" --default-item $directory "
if [ -n "$One_Restricted_Section" ]; then
return 0;
fi
;;
The problem is that --default-item resorts list moving this item to the
beginning of the list and that is confusing and not desirable.
This is the whiptail behaviour, and I do not know how to change it.
Perhaps It would be necceary to add an option to whiptail?
--default-item-no-resort
thanks,
txemi.
--
______________________________
< hola, soy una firma horrible >
------------------------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
txemi <txemi2@euskalnet.net>
web: http://txemi.webhop.org
mirror: http://txemi2.webhop.org
mirror2: http://txemi3.webhop.org
Reply to: