#安装和下载ppp流量监控程序
sudo yum install -y bwm-ng
curl -o /opt/ng.sh http://down.9494.org:9999/ng.sh

#以下是漫星定制
#下载漫星云需要脚本和上报程序
cd
rpm -Uvh http://down.9494.org:9999/rc-init-0.0.9-0.el7.x86_64.rpm
/usr/bin/rc-init.sh
#下载上报依赖脚本
curl -o /opt/pppoe_manager.py http://down.9494.org:9999/pppoe_manager.py
chmod 777 pppoe_manager.py

# 使用SN码作为作为主机名,备用方案2
random_variable=$(cat /root/2.txt)
echo "$random_variable" > /etc/hostname