pppoe-init-turbolinux.in

来自「网上的一个开源代码」· IN 代码 · 共 65 行

IN
65
字号
#!/bin/sh## pppoe                 This script starts or stops a PPPoE connection## chkconfig: 2345 99 01# description: Connects to PPPoE provider## LIC: GPL## Copyright (C) 2000 Roaring Penguin Software Inc.  This software may# be distributed under the terms of the GNU General Public License, version# 2 or any later version.# Source function library if it existstest -r /etc/rc.d/init.d/functions && . /etc/rc.d/init.d/functions# From AUTOCONFprefix=@prefix@exec_prefix=@exec_prefix@# Paths to programsSTART=@sbindir@/pppoe-startSTOP=@sbindir@/pppoe-stopSTATUS=@sbindir@/pppoe-statuscase "$1" in    start)        echo -n "Bringing up PPPoE link: "	$START	if [ $? = 0 ] ; then		echo success		touch /var/lock/subsys/pppoe	else		echo failure	fi        ;;    stop)        echo -n "Shutting down PPPoE link: "	$STOP > /dev/null 2>&1	if [ $? = 0 ] ; then		echo success		rm -f /var/lock/subsys/pppoe	else		echo failure	fi        ;;    restart)	$0 stop	$0 start	;;    status)	$STATUS	;;    *)        echo "Usage: pppoe {start|stop|restart|status}"        exit 1esacexit 0

⌨️ 快捷键说明

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