1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-11-03 10:13:39 +00:00

minor updates

This commit is contained in:
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] "
read -r yn
case "$yn" in
[nN])
;;
*)
${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE}
;;
[nN]) ;;
*) ${TEXT_EDITOR} /etc/modprobe.d/${OPTIONS_FILE} ;;
esac
printf "Do you want to apply the new options by rebooting now? (recommended) [Y/n] "
read -r yn
case "$yn" in
[nN])
;;
*)
reboot
;;
[nN]) ;;
*) reboot ;;
esac
fi

View File

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