#!/bin/bash

version=$(sw_vers -productVersion)

if [[ ${version} = 1.0* || ${version} = 1.1.[012] ]]; then
    user=root
else
    user=mobile
fi

su -c "${user}" "$@"