c-router-emulator/boa_install.sh

11 lines
325 B
Bash

#! /bin/bash
echo "删除原始的boa软连接"
sudo rm -rf /usr/bin/boa
sudo rm -rf /etc/boa
echo "向系统bin目录添加boa软连接"
sudo ln -s ~/c-router-emulator/boa/boa /usr/bin/boa
echo "向系统bin目录添加boa.conf软连接"
sudo mkdir /etc/boa
sudo ln -s ~/c-router-emulator/boa/boa.conf /etc/boa/boa.conf