快捷搜索:   服务器  安全  linux 安全  MYSQL  dedecms

QMAIL MH设计方案(8)

我用以下技巧拨号,它被称为简洁的isdn on|off

#!/bin/bash
# This is based on an old script from Bernhard Hailer

IP_ADDRESS="195.112.123.11"

case "$1" in
on)

echo "Calling ippp0"
/sbin/isdnctrl dial ippp0
# the sleep is important as it gives the PPP time to settle down
echo "Sleep for 8s for PPP handshake"
sleep 8s
/sbin/route add default ippp0
echo "line open - checking...."

# check whether PPP negotiation was successful:
set `ping -qc3 -i1 $IP_ADDRESS 2

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论