summaryrefslogtreecommitdiff
path: root/Library
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2008-08-09 08:21:17 +0000
committerJay Freeman (saurik) <saurik@saurik.com>2010-09-30 07:08:16 +0000
commitf641a0e5c500e602455c8c5ea127550c36d6dadd (patch)
treed64fb491745cdad6815e8be95cca89ad87ad45e8 /Library
parent7b0ce2dae1de402fa371933b3254bf19b81a89eb (diff)
Perfectly smooth package scrolling and a few other niceties.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/firmware.sh7
1 files changed, 6 insertions, 1 deletions
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) <saurik@saurik.com>
-Architecture: darwin-arm
+Architecture: ${architecture}
Version: ${version}
Description: almost impressive Apple frameworks
Name: iPhone Firmware