#!/bin/bash -
usage()
{
		echo "Usage:
		$0 <file_uid> <file_mode> <file_path> 

		Example:
		$0 1000 755 /data/data/com.marvell.otaclient/shared_prefs"
		exit 1
}

if test $# -lt 3; then
	usage
fi

uid=$1
mode=$2
shift 2
target_path=$@

chown $uid.$uid "$target_path"
chmod $mode "$target_path"

