# HG changeset patch # User Christophe Lincoln # Date 1204831490 -3600 # Node ID 189f703376172e3f0253ff7e30893de6720da38a # Parent 82bb5c2a9375d9eb581e65e89171acfeb51a2757 Fix anser for writefs diff -r 82bb5c2a9375 -r 189f70337617 tazusb --- a/tazusb Wed Mar 05 16:30:43 2008 +0000 +++ b/tazusb Thu Mar 06 20:24:50 2008 +0100 @@ -280,20 +280,20 @@ #optionally remove sound card selection echo -n "Do you wish to remove the sound card selection (Yes/no/exit) ? " - read answer - answer=`echo "$answer:0:1}" | tr A-Z a-z` - - if [ "$answer" = "e" ]; then - exit 0 - fi - - if [ "$answer" = "y" ]; then - echo -n "Removing current sound card selection..." - rm -f /var/lib/sound-card-driver - rm -f /etc/asound.state - else - echo -n "Keeping current sound card selection..." - fi + read anser + case $anser in + e|E|"exit"|Exit) + exit 0 + ;; + y|Y|yes|Yes) + echo -n "Removing current sound card selection..." + rm -f /var/lib/sound-card-driver + rm -f /etc/asound.state + ;; + *) + echo -n "Keeping current sound card selection..." + ;; + esac status #create list of files