1on post-fs
2    ## ensure correct calibration file permissions
3    chown root system /persist/sensorcal.json
4    chmod 0640 /persist/sensorcal.json
5    ## Update Nanohub FW if needed
6    start flash-nanohub-fw
7
8on post-fs-data
9    mkdir /data/vendor/sensor
10    chown root system /data/vendor/sensor
11    chmod 0770 /data/vendor/sensor
12
13service flash-nanohub-fw /vendor/bin/nanoapp_cmd download
14    oneshot
15    disabled
16