fix setcap issue
This commit is contained in:
parent
356c5de14d
commit
7af7814e10
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue