This commit is contained in:
milisbir 2018-01-11 17:32:39 +02:00
parent 6cf69322ec
commit a53cf607c5
2 changed files with 23 additions and 1 deletions

8
bin/intel-ucode_guncelle.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
echo "yapım aşamasında"
exit 1
mps guncelle
[ ! -d /var/lib/pkg/DB/iucode-tool ] && mps kur iucode-tool
[ "`mps bil surum intel-ucode`" <> "2.1.15" ] && mps -g intel-ucode
iucode_tool -S --write-earlyfw=/boot/guncel_ucode.cpio /lib/firmware/intel-ucode/*
# gruba eklenecek,

16
bin/mps
View File

@ -2945,13 +2945,27 @@ ayarlar() {
touch "/tmp/mps_paket_bilgi_$2" touch "/tmp/mps_paket_bilgi_$2"
paket_bilgi "$2" "$3" | tee "/tmp/mps_paket_bilgi_$2" paket_bilgi "$2" "$3" | tee "/tmp/mps_paket_bilgi_$2"
if [ $3 ];then if [ $3 ];then
[ $3 = "--html" ] && paket_bilgi_html "/tmp/mps_paket_bilgi_$2" [ $3 == "--html" ] && paket_bilgi_html "/tmp/mps_paket_bilgi_$2"
fi fi
else else
ryaz 31 "paket ismi eksik" ryaz 31 "paket ismi eksik"
exit 1 exit 1
fi fi
exit 0 ;; exit 0 ;;
bil)
if [ $2 ];then
if [ $3 ];then
[ $2 == "surum" ] && paket_bilgi "$3" "--normal" | sed -n 6p | cut -d':' -f2 | sed 's/^ *//;s/ *$//'
[ $2 == "devir" ] && paket_bilgi "$3" "--normal" | sed -n 7p | cut -d':' -f2 | sed 's/^ *//;s/ *$//'
else
ryaz 31 "paket ismi eksik"
exit 1
fi
else
ryaz 31 "islev ismi eksik"
exit 1
fi
exit 0 ;;
phtml) phtml)
paketler_depo_html paketler_depo_html
exit 0 ;; exit 0 ;;