fix setcap issue

This commit is contained in:
Yunlong Xiao 2022-07-12 14:47:08 +08:00
parent 356c5de14d
commit 7af7814e10
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@ After=appmainprog.service
Requires=6627_btservice.service appmainprog.service Requires=6627_btservice.service appmainprog.service
[Service] [Service]
ExecStart=/bin/bash /usr/bin/config_app.sh >& ttyS0 xecStart=/bin/bash /usr/bin/config_app.sh
Type=simple Type=simple
StandardOutput=syslog StandardOutput=syslog
StandardError=syslog StandardError=syslog

View File

@ -8,8 +8,8 @@ chown -R avs:avs /data/config
chown -R avs:avs /data/nvram chown -R avs:avs /data/nvram
chmod 700 /data/nvram/ chmod 700 /data/nvram/
/data/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip CAP_SYS_TIME+eip CAP_SYS_RAWIO+eip CAP_SYS_ADMIN+eip CAP_SYS_BOOT+eip' /usr/bin/config_app setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip CAP_SYS_TIME+eip CAP_SYS_RAWIO+eip CAP_SYS_ADMIN+eip CAP_SYS_BOOT+eip' /usr/bin/config_app
/data/setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/appmainprog setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/bin/appmainprog
chown -R avs:avs /tmp/ chown -R avs:avs /tmp/
chown avs:avs /tmp/mtk_bt_service chown avs:avs /tmp/mtk_bt_service