From f641a0e5c500e602455c8c5ea127550c36d6dadd Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 9 Aug 2008 08:21:17 +0000 Subject: Perfectly smooth package scrolling and a few other niceties. --- Library/firmware.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Library/firmware.sh') diff --git a/Library/firmware.sh b/Library/firmware.sh index a45fd21..3edf8d0 100755 --- a/Library/firmware.sh +++ b/Library/firmware.sh @@ -1,5 +1,7 @@ #!/bin/bash +# XXX: FIX THIS!! +architecture=iphoneos-arm version=$(sw_vers -productVersion) if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then @@ -8,6 +10,9 @@ if grep '^Package: firmware$' /var/lib/dpkg/status >/dev/null; then firmware= elif [[ ${line} == '' ]]; then unset firmware + elif [[ ${line} == Architecture:* && "${firmware+@}" ]]; then + echo "Architecture: ${architecture}" + continue elif [[ ${line} == Version:* && "${firmware+@}" ]]; then echo "Version: ${version}" continue @@ -24,7 +29,7 @@ Priority: required Section: System Installed-Size: 0 Maintainer: Jay Freeman (saurik) -Architecture: darwin-arm +Architecture: ${architecture} Version: ${version} Description: almost impressive Apple frameworks Name: iPhone Firmware -- cgit v1.2.3