openwrt相关

作者: lushitao 分类: 智能家居 发布时间: 2020-06-13 09:59

1,镜像源

src/gz openwrt_core https://openwrt.proxy.ustclug.org/snapshots/targets/ipq40xx/generic/packages
src/gz openwrt_base https://openwrt.proxy.ustclug.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/base
src/gz openwrt_luci https://openwrt.proxy.ustclug.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/luci
src/gz openwrt_packages https://openwrt.proxy.ustclug.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/packages
src/gz openwrt_routing https://openwrt.proxy.ustclug.org/snapshots/packages/arm_cortex-a7_neon-vfpv4/routing

2,openwrt开机自启

!/bin/sh /etc/rc.common

START=99

start() {
sh /home/lst/lstauto.sh
}

stop() {
echo “my-sh has stopped.”
}

运行:/etc/init.d/lstauto enable

3,开机脚本:lstauto.sh

/home/lst/glider -listen ss://aes-256-gcm:pwd@:port &
iptables -t filter -I INPUT -p tcp –dport port -j ACCEPT
iptables -t filter -I INPUT -p udp –dport port -j ACCEPT

/home/lst/client_linux_arm7 -s xx.xx.xx.xx -p xx -k xxxxxxxxx -ssl true > /tmp/lst.log 2>1 &

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注