diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-06-26 01:19:34 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-06-26 01:19:34 +0000 |
commit | f8736d251e4291e414bd0bdaca2346cd7ef265dd (patch) | |
tree | 3c0018fb1226672ebaac9a2043eb078fbc940368 /examples | |
parent | 6c947d289fde9468092a23ed686632c81f99dcac (diff) | |
download | busybox-w32-f8736d251e4291e414bd0bdaca2346cd7ef265dd.tar.gz busybox-w32-f8736d251e4291e414bd0bdaca2346cd7ef265dd.tar.bz2 busybox-w32-f8736d251e4291e414bd0bdaca2346cd7ef265dd.zip |
rpm2cpio applet by Laurence Anderson
Diffstat (limited to 'examples')
-rw-r--r-- | examples/unrpm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/unrpm b/examples/unrpm index 9ab37be0a..376286a6f 100644 --- a/examples/unrpm +++ b/examples/unrpm | |||
@@ -29,7 +29,7 @@ exist | |||
29 | type more >/dev/null 2>&1 && pager=more | 29 | type more >/dev/null 2>&1 && pager=more |
30 | type less >/dev/null 2>&1 && pager=less | 30 | type less >/dev/null 2>&1 && pager=less |
31 | [ "$pager" = "" ] && echo "No pager found!" && exit | 31 | [ "$pager" = "" ] && echo "No pager found!" && exit |
32 | (echo -e "\nPress enter to scroll, q to Quit!\n" ; rpmunpack < $rpm | gzip -dc | cpio -tv --quiet) | $pager | 32 | (echo -e "\nPress enter to scroll, q to Quit!\n" ; rpm2cpio $rpm | cpio -tv --quiet) | $pager |
33 | exit | 33 | exit |
34 | elif [ "$1" = "-x" ]; then | 34 | elif [ "$1" = "-x" ]; then |
35 | exist | 35 | exist |
@@ -39,7 +39,7 @@ elif [ ! -d "$3" ]; then | |||
39 | echo "No such directory $3!" | 39 | echo "No such directory $3!" |
40 | exit | 40 | exit |
41 | fi | 41 | fi |
42 | rpmunpack < $rpm | gzip -d | (umask 0 ; cd $3 ; cpio -idmuv) || exit | 42 | rpm2cpio $rpm | (umask 0 ; cd $3 ; cpio -idmuv) || exit |
43 | echo | 43 | echo |
44 | echo "Extracted $rpm to $3!" | 44 | echo "Extracted $rpm to $3!" |
45 | exit | 45 | exit |