diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-01 10:18:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-11-01 10:18:00 +0100 |
commit | 5c48ab509f278aecbb3d205747b45f3dd663455d (patch) | |
tree | b6fc2423702487027eeec09622f9e4baa39e78b7 | |
parent | b120bebbbe8e72904513f9b8caea39141809d42c (diff) |
extr: Added cpio and lzma
-rw-r--r-- | etc/functions/extr | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/etc/functions/extr b/etc/functions/extr index 2ba4d90..b3d5f33 100644 --- a/etc/functions/extr +++ b/etc/functions/extr @@ -22,6 +22,8 @@ if [[ -f $1 ]] { *.zip) unzip $1 ;; *.Z) uncompress $1 ;; *.shar) confirm_shar && sh $1 ;; + *.cpio) cpio --no-absolute-filenames -idv < $1 ;; + *.lzma) unlzma $1 ;; *) echo "Unknown archive type: $1"; return 2 ;; esac } else { |