Created
November 1, 2021 01:07
-
-
Save chinawiz/638f6e323e9091d4f6cd611e2db9f07f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#重启梅林固件的拨号 | |
# 刷的官改固件,脚本可以放到/koolshare/scripts 下,重启的话也不会丢失,官方固件的话可以放到/jffs 下 | |
#vi /koolshare/scripts/repppd.sh | |
#!/bin/sh | |
/usr/bin/logger -c "断开拨号连接" | |
killall pppd | |
/usr/bin/logger -c "延时10秒" | |
sleep 10 | |
/usr/bin/logger -c "重新拨号" | |
pppd file /tmp/ppp/options.wan0 >/dev/null 2>&1 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment