malfs mekanizma guncelleme

This commit is contained in:
root 2016-03-07 09:30:10 +02:00
parent d46d231764
commit 1a9e638cb8
2 changed files with 6 additions and 5 deletions

View File

@ -25,8 +25,9 @@ icerik_ekle(){
mkdir -p tmpk.$paketad mkdir -p tmpk.$paketad
tar xf $1 -C tmpk.$paketad && tar xf $1 -C tmpk.$paketad &&
mkdir -p /var/lib/pkg/DB/"$paketad" && mkdir -p /var/lib/pkg/DB/"$paketad" &&
cp -avf tmpk.$paketad/* $kokdizin > /var/lib/pkg/DB/"$paketad"/kurulan && cp -avf tmpk.$paketad/* $kokdizin > tmpk.$paketad/kurulan &&
mv tmpk.$paketad/.MTREE /var/lib/pkg/DB/"$paketad"/files && cat tmpk.$paketad/kurulan | cut -d '>' -f2 > /var/lib/pkg/DB/"$paketad"/kurulan
#mv tmpk.$paketad/.MTREE /var/lib/pkg/DB/"$paketad"/files &&
mv tmpk.$paketad/.META /var/lib/pkg/DB/"$paketad"/META && mv tmpk.$paketad/.META /var/lib/pkg/DB/"$paketad"/META &&
#kur-kos calistirilmasi #kur-kos calistirilmasi
@ -102,7 +103,7 @@ paket_silyeni(){
# #
#while IFS='' read -r line || [[ -n "$line" ]]; do #while IFS='' read -r line || [[ -n "$line" ]]; do
cat /var/lib/pkg/DB/htop/kurulan | cut -d '>' -f2 > /tmp/$paket.sil cat /var/lib/pkg/DB/$paket/kurulan | cut -d '>' -f2 > /tmp/$paket.sil
while true; do while true; do
ryaz 34 $paket" $1 paketi kaldırılsın mı?";read -p "e veya h-> " eh ryaz 34 $paket" $1 paketi kaldırılsın mı?";read -p "e veya h-> " eh

View File

@ -1011,8 +1011,8 @@ chroot_gir(){
lfs_kontrol lfs_kontrol
unmount_islemi unmount_islemi
mount_islemi mount_islemi
#chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login +h chroot "$LFS" /usr/bin/env -i HOME=/root TERM="$TERM" PS1='\u:\w\$ ' /bin/bash --login +h
chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h #chroot "$LFS" /usr/bin/env -i HOME=/root PS1='\u:\w\$ ' /bin/bash --login +h
} }