smart-os/env.sh

12 lines
390 B
Bash
Raw Normal View History

2022-07-27 00:44:22 +08:00
#!/bin/sh
2022-07-27 13:06:23 +08:00
2022-07-27 00:44:22 +08:00
rm work/kernel_install/ work/glibc_install/ work/busybox_install/ -rf
2022-07-27 13:06:23 +08:00
if [ -f "/usr/bin/apt" ]; then
2022-07-28 06:15:43 +08:00
apt -y install gcc g++ make autoconf automake gawk bison libelf-dev bridge-utils qemu-system docker.io
2022-07-27 13:06:23 +08:00
fi
if [ -f "/usr/bin/yum" ]; then
2022-07-28 06:15:43 +08:00
yum -y install gcc gcc-c++ make autoconf auotmake gawk bison elfutils-libelf bridge-utils qemu-img qemu-kvm qemu-kvm-tools docker
2022-07-27 13:06:23 +08:00
fi