]> git.saurik.com Git - cydia.git/blame - Library/asuser
Fixed 2.1 support for 2.0 and dealt with a /stupid/ parsing mistake.
[cydia.git] / Library / asuser
CommitLineData
a3306196
JF
1#!/bin/bash
2
3version=$(sw_vers -productVersion)
4
5if [[ ${version} = 1.0* || ${version} = 1.1.[012] ]]; then
6 user=root
7else
8 user=mobile
9fi
10
11su -c "${user}" "$@"