minor updates

pull/72/head
morrownr 2023-02-28 21:32:19 -06:00
parent 8d3d61775c
commit ab61abf36e
2 changed files with 9 additions and 16 deletions

View File

@ -388,22 +388,14 @@ if [ $NO_PROMPT -ne 1 ]; then
printf "Do you want to edit the driver options file now? (recommended) [Y/n] " printf "Do you want to edit the driver options file now? (recommended) [Y/n] "
read -r yn read -r yn
case "$yn" in case "$yn" in
[nN]) [nN]) ;;
;; *) ${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE} ;;
*)
${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE}
;;
esac esac
printf "Do you want to apply the new options by rebooting now? (recommended) [Y/n] " printf "Do you want to apply the new options by rebooting now? (recommended) [Y/n] "
read -r yn read -r yn
case "$yn" in case "$yn" in
[nN]) [nN]) ;;
;; *) reboot ;;
*)
reboot
;;
esac esac
fi fi

View File

@ -139,9 +139,10 @@ echo
# if NoPrompt is not used, ask user some questions # if NoPrompt is not used, ask user some questions
if [ $NO_PROMPT -ne 1 ]; then if [ $NO_PROMPT -ne 1 ]; then
printf "Do you want to reboot now? (recommended) [y/N] " printf "Do you want to reboot now? (recommended) [Y/n] "
read -r REPLY read -r yn
case "$REPLY" in case "$yn" in
[yY]*) reboot ;; [nN]) ;;
*) reboot ;;
esac esac
fi fi