diff options
author | sibel <lesibel@free.fr> | 2011-02-03 10:37:44 +0100 |
---|---|---|
committer | sibel <lesibel@free.fr> | 2011-02-03 10:37:44 +0100 |
commit | 2f375c25ecb42591e2ede476ba84b06295ebd863 (patch) | |
tree | b02ce59a50c959757db54ae50450059d60a2043f /base/pkg-get-awk/post-install | |
parent | 45bb6e63dc6a78d33d14508a9c217796f101a23a (diff) | |
parent | 1506f9971307bb66d6edf2edc51a20e5723371b4 (diff) | |
download | nutyx-pakxe-2f375c25ecb42591e2ede476ba84b06295ebd863.tar.gz nutyx-pakxe-2f375c25ecb42591e2ede476ba84b06295ebd863.tar.bz2 nutyx-pakxe-2f375c25ecb42591e2ede476ba84b06295ebd863.tar.xz nutyx-pakxe-2f375c25ecb42591e2ede476ba84b06295ebd863.zip |
Merge branch 'master' of ssh://kiao.no-ip.info:443/~/pakxe
Diffstat (limited to 'base/pkg-get-awk/post-install')
-rwxr-xr-x | base/pkg-get-awk/post-install | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/base/pkg-get-awk/post-install b/base/pkg-get-awk/post-install new file mode 100755 index 000000000..63e4e41c8 --- /dev/null +++ b/base/pkg-get-awk/post-install @@ -0,0 +1,19 @@ +#!/bin/sh + +pkf=/usr/bin/pkg-get +if [ -L $pkf ]; then + rm $pkf +else + file $pkf | grep perl >/dev/null + if [ $? -eq 0 ]; then + mv $pkf $pkf.pl + fi +fi +if [ -f $pkf ]; then + echo "pkg-get-awk_post_install: ERREUR, le fichier $pkf existe déjà !!!" + exit 1 +fi +ln -s /usr/bin/pkg-get.awk $pkf +if [ ! -f /etc/pkg-get.conf ]; then + cp -p /etc/pkg-get-awk.conf /etc/pkg-get.conf +fi |