X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/9fe9d6c3c396dfa311905823f9893f3582efc95a..e954c30af6dc38a7ca6a296fbaed9863be378700:/Library/firmware.sh?ds=sidebyside diff --git a/Library/firmware.sh b/Library/firmware.sh index 1c966cb9..53543ba9 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -23,7 +23,7 @@ model=$(sysctl -n "${model}") status=${data}/status function lower() { - tr '[:upper:]' '[:lower:]' + sed -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/' } # Generate New Package {{{ @@ -52,6 +52,9 @@ EOF { # Delete Old Packages {{{ + unset firmware + unset blank + while IFS= read -r line; do #echo "#${firmware+@}/${blank+@} ${line}" 1>&2 @@ -87,7 +90,15 @@ EOF if [[ ${cpu} == arm ]]; then pseudo "firmware" "${version}" "almost impressive Apple frameworks" - gssc 2>&1 | sed -re ' + while [[ 1 ]]; do + gssc=$(gssc 2>&1) + if [[ ${gssc} != *'(null)'* ]]; then + break + fi + sleep 1 + done + + echo "${gssc}" | sed -re ' /^ [^ ]* = [0-9.]*;$/ ! d; s/^ ([^ ]*) = ([0-9.]*);$/\1 \2/; s/([A-Z])/-\L\1/g; s/^"([^ ]*)"/\1/; @@ -95,6 +106,10 @@ EOF / 0$/ d; ' | while read -r name value; do pseudo "gsc.${name}" "${value}" "virtual GraphicsServices dependency" + + if [[ ${name} == ipad ]]; then + pseudo "gsc.wildcat" "${value}" "virtual virtual GraphicsServices dependency" + fi done fi