mirror of
https://github.com/teddysun/across.git
synced 2025-01-18 22:09:35 +08:00
Update wireguard.sh
This commit is contained in:
parent
6458000429
commit
31ef402ce2
@ -293,7 +293,9 @@ install_wg_pkgs() {
|
||||
_error_detect "yum -y install gcc"
|
||||
_error_detect "yum -y install make"
|
||||
_error_detect "yum -y install yum-utils"
|
||||
[ -n "$(_os_ver)" -a "$(_os_ver)" -eq 8 ] && _error_detect "yum config-manager --set-enabled powertools"
|
||||
if [ -n "$(_os_ver)" -a "$(_os_ver)" -eq 8 ]; then
|
||||
yum-config-manager --enable PowerTools > /dev/null 2>&1 || yum-config-manager --enable powertools > /dev/null 2>&1
|
||||
fi
|
||||
_error_detect "yum -y install libmnl-devel"
|
||||
_error_detect "yum -y install elfutils-libelf-devel"
|
||||
[ ! -d "/usr/src/kernels/$(uname -r)" ] && _error_detect "yum -y install kernel-headers" && _error_detect "yum -y install kernel-devel"
|
||||
|
Loading…
x
Reference in New Issue
Block a user