* select-screen-profile: limit erroneous attempts to 5; make the "plain"

profile default; remove the "recommended" pointer
This commit is contained in:
Dustin Kirkland 2009-01-27 14:05:32 -05:00
commit 5cab15b5c3
2 changed files with 10 additions and 3 deletions

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
screen-profiles (1.16) UNRELEASED; urgency=low screen-profiles (1.16) UNRELEASED; urgency=low
* * select-screen-profile: limit erroneous attempts to 5; make the "plain"
profile default; remove the "recommended" pointer
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 26 Jan 2009 15:24:52 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Tue, 27 Jan 2009 12:36:44 -0500
screen-profiles (1.15-0ubuntu1) jaunty; urgency=low screen-profiles (1.15-0ubuntu1) jaunty; urgency=low

View file

@ -72,14 +72,20 @@ prompt() {
i=$(expr $i + 1) i=$(expr $i + 1)
desc=" " desc=" "
if [ "$x" = "ubuntu" ]; then if [ "$x" = "ubuntu" ]; then
desc="-light\t<---- ` gettext 'recommended'`" desc="-light\t"
elif [ "$x" = "plain" ]; then
simple=$i simple=$i
fi fi
echo " $i. $x$desc" echo " $i. $x$desc"
done done
echo echo
selected=x selected=x
count=1
while /bin/true; do while /bin/true; do
if [ $count -gt 5 ]; then
exit 1
fi
count=`expr $count + 1`
if [ -z "$selected" -a ! -z "$simple" ]; then if [ -z "$selected" -a ! -z "$simple" ]; then
selected="$simple" selected="$simple"
elif ! test $selected -gt 0 2>/dev/null; then elif ! test $selected -gt 0 2>/dev/null; then