aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFlorent Villard <warly@mandriva.com>2005-03-22 11:38:46 +0000
committerFlorent Villard <warly@mandriva.com>2005-03-22 11:38:46 +0000
commit104f685b6eb2278db355ba7273a4c33185f976a6 (patch)
tree6ddb4419a0e8b0ae0750ef044457fe51e89ce27e /scripts
parent40786f326c596b02f1b0a0a6726870750c83c700 (diff)
downloadbootsplash-104f685b6eb2278db355ba7273a4c33185f976a6.tar
bootsplash-104f685b6eb2278db355ba7273a4c33185f976a6.tar.gz
bootsplash-104f685b6eb2278db355ba7273a4c33185f976a6.tar.bz2
bootsplash-104f685b6eb2278db355ba7273a4c33185f976a6.tar.xz
bootsplash-104f685b6eb2278db355ba7273a4c33185f976a6.zip
fix fbmenu compilation
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bootanim18
1 files changed, 8 insertions, 10 deletions
diff --git a/scripts/bootanim b/scripts/bootanim
index f0c7f30..c850081 100644
--- a/scripts/bootanim
+++ b/scripts/bootanim
@@ -43,7 +43,7 @@ fi
THEME="No theme selected"
test -f /etc/sysconfig/bootsplash && . /etc/sysconfig/bootsplash
-if [ ! -d /etc/bootsplash/themes/$THEME ]
+if [ ! -d "/etc/bootsplash/themes/$THEME" ]
then
echo "$0: could not find theme $THEME in /etc/bootsplash/themes."
exit 0
@@ -85,13 +85,11 @@ shift
# We end up in bootanim start
-TEMP=`getopt -o mr:d: -- "$@"`
-eval set -- "$TEMP"
-
-while true ; do
+while getopts mr:d opt "$@"
+ do
# echo "loop: $*"
- case "$1" in
- -d) # directory
+ case "$opt" in
+ d) # directory
shift
if [ ! -d "$1" ]; then
echo "Not a valid directory."
@@ -100,16 +98,16 @@ while true ; do
DIRECTORY=$1
shift
;;
- -r) # resolution
+ r) # resolution
shift
MODE=$1;
shift
;;
- -m) # multiple files
+ m) # multiple files
shift
OPTIONS="$OPTIONS -s"
;;
- --) # end
+ -) # end
shift
break;;
*) # Weird