修复ntpdata权限问题

This commit is contained in:
Huang Xin 2022-07-06 08:58:33 -07:00
parent d97a71a76e
commit 823b4b4d8d
1 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,8 @@
#!/bin/bash #!/bin/bash
chown avs:avs /usr/sbin/ntpdate
setcap 'CAP_NET_RAW+eip CAP_NET_ADMIN+eip' /usr/sbin/ntpdate
NIC_READY=`ifconfig | grep wlan0 | grep HWaddr | awk '{print $5}' | sed "s/://g"` NIC_READY=`ifconfig | grep wlan0 | grep HWaddr | awk '{print $5}' | sed "s/://g"`
echo "++++++ Waitting NIC ready" > /tmp/avs-setup.log echo "++++++ Waitting NIC ready" > /tmp/avs-setup.log