shell
往事只能回味味道
这个作者很懒,什么都没留下…
展开
-
ntpdate移植到ARM32平台
将ntpdate文件夹的ntdate拷贝开发部/usr/bin。执行sourec /etc/profile。加入crontab,每分钟执行一次。/etc/profile加入。原创 2022-09-07 01:55:00 · 493 阅读 · 0 评论 -
《shell编程实例 — 实现4G开机自动运行,实时监测,断线自动重拨》
1.GPRS自动拨号脚本(真正的实时监控,断线自动重拨) 功能:开机自动运行,实时监控,断线自动重拨。 原设置为5秒去检测一次,是以1字节去PING。1.GPRS自动拨号脚本(真正的实时监控,断线自动重拨) 功能:开机自动运行,实时监控,断线自动重拨。 原设置为5秒去检测一次,是以1字节去PING。#!/bin/sh#请把dns1,dns2修改成拼得通的DNS,开机自动运行,实时监控,断线自动重拨dns1="211.95.193.97"dns2="211.136.20.2原创 2021-11-20 02:30:53 · 1015 阅读 · 0 评论 -
关于Linux使用pppd拨号,自动断网,重新拨号功能
脚本如下:auto_pppd.sh#!/bin/shwhile truedo ping -w1 news.sina.com.cn >/dev/null 2>&1 || ( killall pppd; date; pppd call wcdma &) sleep 20 #每20秒检测一次done可以放在开机脚本auto_pppd.sh#!/bin/sh#扩展#dns1="211.95.193.97"dns2="211.136.20...原创 2021-05-23 17:33:09 · 1314 阅读 · 0 评论