#!/bin/sh
#SPDX-License-Identifier: LicenseRef-Unisoc-General-1.0
 
#Copyright 2024 Unisoc (Shanghai) Technologies Co., Ltd

#Licensed under the Unisoc General Software License, version 1.0 (the License);
#you may not use this file except in compliance with the License. You may obtain a copy of the License at
#
#https://www.unisoc.com/en_us/license/UNISOC_GENERAL_LICENSE_V1.0-EN_US
#
#Software distributed under the License is distributed on an "AS IS" BASIS,
#WITHOUT WARRANTIES OF ANY KIND, either express or implied.
#See the Unisoc General Software License, version 1.0 for more details.
 
# Add common simple commands here, and add relevant comments ,if there is a large section of code,
# please add the startup script according to the document.

# Add common simple commands here, and add relevant comments ,if there is a large section of code,
# please add the startup script according to the document.

#Config sensorhub sysfs
chmod 660 /sys/bus/iio/devices/trigger0/name
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/iio/buffer/length
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/iio/buffer/enable
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/iio/trigger/current_trigger
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/iio/name

chmod 660 /sys/class/sprd_sensorhub/sensor_hub/batch
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/calibrator_cmd
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/calibrator_data
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/enable
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/flush
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/logctl
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/raw_data_als
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/raw_data_ps
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/sensor_info
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/sensorlist
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/version
chmod 660 /sys/class/sprd_sensorhub/sensor_hub/virtual_handle