2 Star 0 Fork 0

mirrors_android_source/libcap

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
distcheck.sh 458 Bytes
一键复制 编辑 原始数据 按行查看 历史
Andrew G. Morgan 提交于 2020-06-03 11:56 +08:00 . Linux 5.7 supports CAP_PERFMON
#!/bin/bash
actual=$(wget -o/dev/null -O/dev/stdout https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/include/uapi/linux/capability.h | grep "#define.CAP_LAST_CAP"|awk '{print $3}')
working=$(grep "#define.CAP_LAST_CAP" libcap/include/uapi/linux/capability.h|awk '{print $3}')
if [[ ${actual} = ${working} ]]; then
echo "up to date with officially named caps"
exit 0
fi
echo "want: ${actual}"
echo "have: ${working}"
exit 1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_android_source/libcap.git
git@gitee.com:mirrors_android_source/libcap.git
mirrors_android_source
libcap
libcap
main

搜索帮助