tazusb rev 5
Fix anser for writefs
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Mar 06 20:24:50 2008 +0100 (2008-03-06) |
parents | 82bb5c2a9375 |
children | 8de6f630dc3d |
files | tazusb |
line diff
1.1 --- a/tazusb Wed Mar 05 16:30:43 2008 +0000 1.2 +++ b/tazusb Thu Mar 06 20:24:50 2008 +0100 1.3 @@ -280,20 +280,20 @@ 1.4 1.5 #optionally remove sound card selection 1.6 echo -n "Do you wish to remove the sound card selection (Yes/no/exit) ? " 1.7 - read answer 1.8 - answer=`echo "$answer:0:1}" | tr A-Z a-z` 1.9 - 1.10 - if [ "$answer" = "e" ]; then 1.11 - exit 0 1.12 - fi 1.13 - 1.14 - if [ "$answer" = "y" ]; then 1.15 - echo -n "Removing current sound card selection..." 1.16 - rm -f /var/lib/sound-card-driver 1.17 - rm -f /etc/asound.state 1.18 - else 1.19 - echo -n "Keeping current sound card selection..." 1.20 - fi 1.21 + read anser 1.22 + case $anser in 1.23 + e|E|"exit"|Exit) 1.24 + exit 0 1.25 + ;; 1.26 + y|Y|yes|Yes) 1.27 + echo -n "Removing current sound card selection..." 1.28 + rm -f /var/lib/sound-card-driver 1.29 + rm -f /etc/asound.state 1.30 + ;; 1.31 + *) 1.32 + echo -n "Keeping current sound card selection..." 1.33 + ;; 1.34 + esac 1.35 status 1.36 1.37 #create list of files