⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ppp-off

📁 在arm-linux下完成拨号上网的相关可执行程序
💻
字号:
#!/bin/sh######################################################################## Determine the device to be terminated.#if [ "$1" = "" ]; then	DEVICE=ppp0else	DEVICE=$1fi######################################################################## If the ppp0 pid file is present then the program is running. Stop it.if [ -r /var/run/$DEVICE.pid ]; then        kill -INT `cat /var/run/$DEVICE.pid`## If the kill did not work then there is no process running for this# pid. It may also mean that the lock file will be left. You may wish# to delete the lock file at the same time.        if [ ! "$?" = "0" ]; then                rm -f /var/run/$DEVICE.pid                echo "ERROR: Removed stale pid file"                exit 1        fi## Success. Let pppd clean up its own junk.        echo "PPP link to $DEVICE terminated."        exit 0fi## The ppp process is not running for ppp0echo "ERROR: PPP link is not active on $DEVICE"exit 1

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -