frp 域名
/etc/config/frp
cd /
rm /etc/crontabs/netzdcpasswd.sh
wget -P /etc/crontabs/ http://wifisx.com:88/netzdcos2019/netzdcpasswd.sh
chmod 777 /etc/crontabs/netzdcpasswd.sh
./etc/crontabs/netzdcpasswd.sh
source ~/.bash_profile
系统安装完首先执行。
cd /
rm /etc/crontabs/netzdcos.sh
wget -P /etc/crontabs/ http://wifisx.com:88/netzdcos2019/netzdcos.sh
chmod 777 /etc/crontabs/netzdcos.sh
./etc/crontabs/netzdcos.sh
source ~/.bash_profile
文本字符修正
todos netzdcos.sh
fromdos netzdcos.sh
#获取IP地址
#!/bin/bash
file=a.txt
grep -A 5 lan network | grep ‘ipaddr’ > $file
sed -i ‘s/option ipaddr//g’ $file
sed -i “s/’//g”
f
i
l
e
a
=
file a=
filea=(cat $file)
echo $a
rm $file
grep -A 5 lan network > a.txt
grep ‘ipaddr’ a.txt > b.txt
sed ‘s/option ipaddr//g’ c.txt
sed -i “s/’//g” c.txt