代码拉取完成,页面将自动刷新
同步操作将从 chuanjiao10/kasini3000 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#建议保存编码为:bom头 + utf8
[scriptblock]$private:判断linux发行版 =
{
if (Select-String -Pattern 'centos-8' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'centos8'
}
if (Select-String -Pattern 'centos-7' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'centos7'
}
if (Select-String -Pattern 'jessie' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian8'
}
if (Select-String -Pattern 'stretch' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian9'
}
if (Select-String -Pattern 'buster' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian10'
}
if (Select-String -Pattern 'bullseye' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian11'
}
if (Select-String -Pattern 'bookworm' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian12'
}
if (Select-String -Pattern 'trixie' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'debian13'
}
if (Select-String -Pattern 'Trusty Tahr' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'ubuntu1404'
}
if (Select-String -Pattern 'Xenial Xerus' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'ubuntu1604'
}
if (Select-String -Pattern 'Bionic Beaver' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'ubuntu1804'
}
if (Select-String -Pattern 'Focal Fossa' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'ubuntu2004'
}
if (Select-String -Pattern 'Jeremiah Johnson' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'ubuntu2204'
}
if (Select-String -Pattern 'Alpine' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Alpine'
}
if (Select-String -Pattern 'Karoo' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Amazon Linux 2'
}
if (Select-String -Pattern 'Tercel' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'kylin v10'
}
if (Select-String -Pattern 'UOS Server Enterprise-C' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return '统信UOS服务器版'
}
if (Select-String -Pattern 'Karoo' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Amazon Linux 2'
}
if (Select-String -Pattern 'Anolis OS 8' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Anolis OS 8'
}
if (Select-String -Pattern 'openEuler 20.03 (LTS-SP1)' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'openEuler20.03'
}
if (Select-String -Pattern 'Hunting Beagle' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Alibaba Cloud Linux 2'
}
if (Select-String -Pattern 'Soaring Falcon' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Alibaba Cloud Linux 3'
}
if (Select-String -Pattern 'Rocky Linux release 8' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Rocky Linux 8'
}
if (Select-String -Pattern 'AlmaLinux release 8' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'AlmaLinux 8'
}
if (Select-String -Pattern 'Oracle Linux Server 8' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'Oracle Linux 8'
}
if (Select-String -Pattern 'openEuler' -Path '/etc/*-release' -SimpleMatch -Quiet)
{
return 'openEuler'
}
}
return $private:判断linux发行版
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。