first
This commit is contained in:
commit
b50fd16591
197 changed files with 41663 additions and 0 deletions
21
overlay/Ubuntu/usr/local/sbin/debian_cache_to_archives.bash
Executable file
21
overlay/Ubuntu/usr/local/sbin/debian_cache_to_archives.bash
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/sh
|
||||
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||||
# filter
|
||||
|
||||
[ -z "$CACHE" ] && CACHE=/mnt/o/Cache/Apt/Debian/10.6/
|
||||
[ -d "$CACHE" ] || exit 1$?
|
||||
|
||||
cd $CACHE || exit 2
|
||||
|
||||
[ -d var/cache/apt/archives ] || mkdir var/cache/apt/archives
|
||||
|
||||
find *.* -type f -name \*.deb | while read file; do
|
||||
base=$( basename $file )
|
||||
[ ! -d /var/cache/apt/archives/ ] || \
|
||||
[ -e /var/cache/apt/archives/$base ] || ln -s $PWD/$file /var/cache/apt/archives/$base
|
||||
[ -e var/cache/apt/archives/$base ] || ln -s $PWD/$file var/cache/apt/archives/$base
|
||||
done
|
||||
|
||||
|
||||
exit 0
|
||||
|
14
overlay/Ubuntu/usr/local/sbin/debian_uris_to_urls.bash
Executable file
14
overlay/Ubuntu/usr/local/sbin/debian_uris_to_urls.bash
Executable file
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
# -*-mode: sh; tab-width: 8; coding: utf-8-unix -*-
|
||||
|
||||
if [ $? -eq 0 ] ; then
|
||||
# filter
|
||||
grep "^..*http" | sed -e "s@^'@@" -e "s@' .*@@" -e 's@^tor+https@https@'
|
||||
exit 0
|
||||
fi
|
||||
for elt in "$@" ; do
|
||||
base=$( basename $elt .elts )
|
||||
[ -s $base.urls ] && continue
|
||||
sh $0 < $elt > $base.urls
|
||||
[ -s $base.urls ] || rm $base.urls
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue