diff options
Diffstat (limited to 'Library/asuser')
-rwxr-xr-x | Library/asuser | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/asuser b/Library/asuser new file mode 100755 index 0000000..a4285a6 --- /dev/null +++ b/Library/asuser @@ -0,0 +1,11 @@ +#!/bin/bash + +version=$(sw_vers -productVersion) + +if [[ ${version} = 1.0* || ${version} = 1.1.[012] ]]; then + user=root +else + user=mobile +fi + +su -c "${user}" "$@" |