diff --git a/tools/bootstrap.sh b/tools/bootstrap.sh index 02555caeb..4d99dfd5d 100644 --- a/tools/bootstrap.sh +++ b/tools/bootstrap.sh @@ -94,6 +94,20 @@ install_ubuntu_debian_pkg() } + +#################################### +# 当检测到gentoo时,执行此函数 # +#################################### +gentoo() +{ + pkgman="emerge" + echo "检测到Gentoo发行版" + echo "正在更新包管理器的列表..." + sudo "${pkgman}" --sync + echo "正在安装所需的包..." + sudo "${pkgman}" net-misc/curl net-misc/wget net-misc/bridge-utils net-dns/dnsmasq sys-apps/diffutils dev-util/pkgconf sys-apps/which app-arch/unzip sys-apps/util-linux sys-fs/dosfstools sys-devel/gcc dev-build/make sys-devel/flex sys-apps/texinfo dev-libs/gmp dev-libs/mpfr app-emulation/qemu dev-libs/mpc dev-libs/openssl +} + install_archlinux_pkg() { pkgman="pacman"