diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/busybox/examples/undeb | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/busybox/examples/undeb')
-rw-r--r--[-rwxr-xr-x] | release/src/router/busybox/examples/undeb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/release/src/router/busybox/examples/undeb b/release/src/router/busybox/examples/undeb index a72e1e2b..37104e9d 100755..100644 --- a/release/src/router/busybox/examples/undeb +++ b/release/src/router/busybox/examples/undeb @@ -8,12 +8,12 @@ usage() { echo "Usage: undeb -c package.deb <Print control file info>" echo " undeb -l package.deb <List contents of deb package>" echo " undeb -x package.deb /foo/boo <Extract deb package to this directory," -echo " put . for current directory>" +echo " put . for current directory>" exit } deb=$2 - + exist() { if [ "$deb" = "" ]; then usage @@ -30,11 +30,11 @@ exist type more >/dev/null 2>&1 && pager=more type less >/dev/null 2>&1 && pager=less [ "$pager" = "" ] && echo "No pager found!" && exit -(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager +(ar -p $deb control.tar.gz | tar -xzO *control ; echo -e "\nPress enter to scroll, q to Quit!\n" ; ar -p $deb data.tar.gz | tar -tzv) | $pager exit elif [ "$1" = "-c" ]; then exist -ar -p $deb control.tar.gz | tar -xzO *control +ar -p $deb control.tar.gz | tar -xzO *control exit elif [ "$1" = "-x" ]; then exist @@ -44,7 +44,7 @@ elif [ ! -d "$3" ]; then echo "No such directory $3!" exit fi -ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit +ar -p $deb data.tar.gz | tar -xzvpf - -C $3 || exit echo echo "Extracted $deb to $3!" exit |