Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions tools/grub_auto_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,25 @@ export OBJCOPY=objcopy
if [ -d ${grub_dir_i386_efi}/bin ] && [ -d ${grub_dir_i386_legacy}/bin ] && [ -d ${grub_dir_x86_64_efi}/bin ] ; then
exit 0
fi
#仅支持Ubuntu/Debain, Arch, Centos/RHEL8/Fedora下的自动安装
supported_package_manager="apt-get pacman dnf"
#仅支持Ubuntu/Debain, Arch, Centos/RHEL8/Fedora gentoo下的自动安装
supported_package_manager="apt-get pacman dnf yum emerge"
packages=("make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
"make binutils bison gcc gettext flex bison automake autoconf wget gawk")
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
"make binutils bison gcc gettext flex bison automake autoconf wget gawk" \
"dev-build/make sys-devel/binutils sys-devel/bison sys-devel/gcc sys-devel/gettext sys-devel/flex dev-build/automake dev-build/autoconf net-misc/wget sys-apps/gawk")
update_options=("update" \
"-Sy")
"-Sy" \
"update" \
"update" \
"--sync"
)
install_options=("install -y" \
"-S --needed --noconfirm")
"-S --needed --noconfirm" \
"install -y" \
"install -y" \
""
)
found_pm=0
pm_index=0
for pm in ${supported_package_manager}; do
Expand Down