Update wireguard.sh

This commit is contained in:
Teddysun 2020-04-05 18:16:09 +09:00
parent 9fbd771d99
commit 9a8fab74f5
No known key found for this signature in database
GPG Key ID: 09BD4C080AD6C46D

View File

@ -146,7 +146,8 @@ _is_installed() {
if [ -s "/lib/modules/$(uname -r)/extra/wireguard.ko" ] \ if [ -s "/lib/modules/$(uname -r)/extra/wireguard.ko" ] \
|| [ -s "/lib/modules/$(uname -r)/extra/wireguard.ko.xz" ] \ || [ -s "/lib/modules/$(uname -r)/extra/wireguard.ko.xz" ] \
|| [ -s "/lib/modules/$(uname -r)/updates/dkms/wireguard.ko" ] \ || [ -s "/lib/modules/$(uname -r)/updates/dkms/wireguard.ko" ] \
|| [ -s "/lib/modules/$(uname -r)/kernel/drivers/net/wireguard/wireguard.ko" ]; then || [ -s "/lib/modules/$(uname -r)/kernel/drivers/net/wireguard/wireguard.ko" ] \
|| [ -s "/lib/modules/$(uname -r)/kernel/drivers/net/wireguard/wireguard.ko.xz" ]; then
install_flag[1]=1 install_flag[1]=1
fi fi
if [ "${install_flag[0]}" = "1" ] && [ "${install_flag[1]}" = "1" ]; then if [ "${install_flag[0]}" = "1" ] && [ "${install_flag[1]}" = "1" ]; then