diff --git a/bin/intel-ucode_guncelle.sh b/bin/intel-ucode_guncelle.sh new file mode 100755 index 000000000..b20771661 --- /dev/null +++ b/bin/intel-ucode_guncelle.sh @@ -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, diff --git a/bin/mps b/bin/mps index 641159de1..a529626e1 100755 --- a/bin/mps +++ b/bin/mps @@ -2945,13 +2945,27 @@ ayarlar() { touch "/tmp/mps_paket_bilgi_$2" paket_bilgi "$2" "$3" | tee "/tmp/mps_paket_bilgi_$2" if [ $3 ];then - [ $3 = "--html" ] && paket_bilgi_html "/tmp/mps_paket_bilgi_$2" + [ $3 == "--html" ] && paket_bilgi_html "/tmp/mps_paket_bilgi_$2" fi else ryaz 31 "paket ismi eksik" exit 1 fi 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) paketler_depo_html exit 0 ;;