Skip to content

Commit

Permalink
omg fauxsu
Browse files Browse the repository at this point in the history
  • Loading branch information
comex committed Oct 28, 2010
1 parent cf4402d commit 51d2210
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upgrade-data/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: upgrade-data
Version: 0.002
Version: 0.003
Maintainer: comex <[email protected]>
Priority: optional
Architecture: iphoneos-arm
Expand Down
2 changes: 1 addition & 1 deletion upgrade-data/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [ "`whoami`" != "root" ]; then
touch upgrade-data.deb
# lol fabricate
cat ../config/keyz.txt ../data/data lol_mkdir DEBIAN/* >/dev/null
exec sudo "$0" "$@"
exec ./fakeroot "$0" "$@"
fi
rm -rf root
mkdir root
Expand Down
7 changes: 7 additions & 0 deletions upgrade-data/fakeroot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh
if (which fakeroot >&/dev/null); then
exec fakeroot "$@"
else
export DYLD_INSERT_LIBRARIES="`pwd`"/fauxsu.dylib
exec "$@"
fi
Binary file added upgrade-data/fauxsu.dylib
Binary file not shown.

0 comments on commit 51d2210

Please sign in to comment.