]> git.saurik.com Git - cydia.git/blob - Library/asuser
libapt-pkg needs to be statically linked on armv6.
[cydia.git] / Library / asuser
1 #!/bin/bash
2
3 version=$(sw_vers -productVersion)
4
5 if [[ ${version} = 1.0* || ${version} = 1.1.[012] ]]; then
6 user=root
7 else
8 user=mobile
9 fi
10
11 su -c "${user}" "$@"