chcon on Android 5.0 doesn't support -h options
This commit is contained in:
parent
50c56f8b50
commit
cd8dd65a65
@ -168,7 +168,7 @@ abort() {
|
||||
set_perm() {
|
||||
chown $2:$3 $1 || exit 1
|
||||
chmod $4 $1 || exit 1
|
||||
[ -z $5 ] && chcon -h 'u:object_r:system_file:s0' $1 || chcon -h $5 $1
|
||||
[ -z $5 ] && chcon 'u:object_r:system_file:s0' $1 || chcon $5 $1
|
||||
}
|
||||
|
||||
set_perm_recursive() {
|
||||
|
Loading…
Reference in New Issue
Block a user