summaryrefslogtreecommitdiffstats
path: root/base/pkg-get-awk/syn
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2011-03-27 15:49:30 +0200
committertnut <thierryn1 at hispeed dot ch>2011-03-27 15:49:30 +0200
commit5e5c2d317d9afe7327a75a6c35099510e1f8bb9c (patch)
tree71c67c4cf3532953851edd13a9de6d1964b22f9c /base/pkg-get-awk/syn
parentd460c8b6b98046aaad341547116f9a8a1051fe36 (diff)
downloadnutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.gz
nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.bz2
nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.tar.xz
nutyx-extra-5e5c2d317d9afe7327a75a6c35099510e1f8bb9c.zip
pkg-get, remplacé par pkg-get-awk
Diffstat (limited to 'base/pkg-get-awk/syn')
-rw-r--r--base/pkg-get-awk/syn51
1 files changed, 0 insertions, 51 deletions
diff --git a/base/pkg-get-awk/syn b/base/pkg-get-awk/syn
deleted file mode 100644
index 95284d529..000000000
--- a/base/pkg-get-awk/syn
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/bin/bash
-MediaDepot=/media/cdrom/depot
-Depot=/srv/NuTyX
-find_cd() {
-EXPECT_LABEL="nutyxcd"
-let PKGNB=0
-for SYS in /sys/block/sd* /sys/block/sr* ; do
- if [ ! -d "$SYS" ]; then continue; fi
- DEV=/dev/${SYS##*/}
- LABEL=`dd if=$DEV bs=1 skip=32808 count=32 2>/dev/null`
- if [ $LABEL == $EXPECT_LABEL ] 2>/dev/null ; then
- mkdir -p /media/cdrom 2>/dev/null
- mount $DEV /media/cdrom
- if [ ! -d /media/cdrom/depot ]; then
- umount -n /media/cdrom
- fi
- break
- fi
-done
-}
-if [ ! "$EUID" -eq 0 ]; then
- echo "Seul le compte root peut synchroniser les ports NuTyX"
- exit 1
-fi
-if ! mountpoint /media/cdrom > /dev/null; then
- find_cd
-fi
-for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4`
-do
- if [ -a $Depot/$i ]; then
- rm -r $Depot/$i
- fi
- mkdir -p $Depot/$i
-done
-pkg-get sync
-for i in `cat /etc/pkg-get.conf |grep -v ^#|grep http|cut -d "|" -f 1|cut -d" " -f2|cut -d"/" -f4`
-do
- if [ -d $MediaDepot/$i ]; then
- rm -r $Depot/$i > /dev/null 2>&1
- mkdir -p $Depot/$i
- for j in $MediaDepot/$i/*.xz
- do
- let PKGNB=$PKGNB+1
- fj=`basename $j`
- ln -sf $MediaDepot/$i/$fj $Depot/$i/$fj
- echo -n -e "$PKGNB Paquets trouvés sur le média\r"
- done
- echo "$PKGNB Paquets trouvés sur le média"
- cp $MediaDepot/$i/PKG* $Depot/$i/
- fi
-done