#創建腳本run.sh
touch /etc/init.d/run.sh
#配置腳本權限
chmod 777 /etc/init.d/run.sh
#寫入運行的內容
vim /etc/init.d/run.sh
ethtool -K eth0 tso off
nohup /root/net-speeder-master/net_speeder eth0 "tcp" &
nohup /root/net-speeder-master/net_speeder eth0 "icmp" &
exit 0
#配置開機運行
update-rc.d run.sh start 6
#刪除開機運行腳本
update-rc.d -f run.sh remove