smart-os/env.sh
2022-07-27 14:38:34 +08:00

12 lines
288 B
Bash

#!/bin/sh
rm work/kernel_install/ work/glibc_install/ work/busybox_install/ -rf
if [ -f "/usr/bin/apt" ]; then
apt -y install gcc g++ make gawk bison libelf-dev qemu-system docker.io
fi
if [ -f "/usr/bin/yum" ]; then
yum -y install gcc gcc-c++ make gawk bison elfutils-libelf
fi