diff --git a/install-driver.sh b/install-driver.sh index 5dd753b..0a2229e 100755 --- a/install-driver.sh +++ b/install-driver.sh @@ -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 diff --git a/remove-driver.sh b/remove-driver.sh index f08575e..6477676 100755 --- a/remove-driver.sh +++ b/remove-driver.sh @@ -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