diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/bootanim | 18 |
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 |