Ignore:
Timestamp:
Mar 11, 2010, 2:56:03 AM (14 years ago)
Author:
Bruno Cornec
Message:

r3724@localhost: bruno | 2010-03-10 00:46:58 +0100

  • Remove more busyboix references
  • Avoid some actions when called standalone
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/rootfs/sbin/install-additional-tools

    r2508 r2592  
    4949    cd $mountdir
    5050    counter=0
    51     for fname in `tar -zxvf $tarball` ; do
    52      counter=$(($counter+1))
    53         [ "$(($counter % 4))" -eq "0" ] && echo -en "\r\t\t\t\t\t\t\t\\"
    54         [ "$(($counter % 4))" -eq "1" ] && echo -en "\r\t\t\t\t\t\t\t|"
    55         [ "$(($counter % 4))" -eq "2" ] && echo -en "\r\t\t\t\t\t\t\t/"
    56         [ "$(($counter % 4))" -eq "3" ] && echo -en "\r\t\t\t\t\t\t\t-"
    57     done
     51    if [ -f $tarball ]; then
     52        for fname in `tar -zxvf $tarball` ; do
     53            counter=$(($counter+1))
     54            [ "$(($counter % 4))" -eq "0" ] && echo -en "\r\t\t\t\t\t\t\t\\"
     55            [ "$(($counter % 4))" -eq "1" ] && echo -en "\r\t\t\t\t\t\t\t|"
     56            [ "$(($counter % 4))" -eq "2" ] && echo -en "\r\t\t\t\t\t\t\t/"
     57            [ "$(($counter % 4))" -eq "3" ] && echo -en "\r\t\t\t\t\t\t\t-"
     58        done
     59    fi
    5860    cd $old_pwd
    5961    echo -e -n "\r"
Note: See TracChangeset for help on using the changeset viewer.