summaryrefslogtreecommitdiff
path: root/etc/functions
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-11-01 10:18:00 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-11-01 10:18:00 +0100
commit5c48ab509f278aecbb3d205747b45f3dd663455d (patch)
treeb6fc2423702487027eeec09622f9e4baa39e78b7 /etc/functions
parentb120bebbbe8e72904513f9b8caea39141809d42c (diff)
extr: Added cpio and lzma
Diffstat (limited to 'etc/functions')
-rw-r--r--etc/functions/extr2
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 {