go-gui

来自「在linux上实现拨号上网的功能,可以在平台arm上运行,移植性比较好。最新的代」· 代码 · 共 94 行

TXT
94
字号
#!/bin/sh# LIC: GPL#***********************************************************************## go-gui## Quick-start shell script to set up PPPoE and GUI wrapper## Copyright (C) 2000 Roaring Penguin Software Inc.## $Id$#***********************************************************************# GUI only works on Linuxif test "`uname`" != "Linux" ; then    echo "Sorry, the GUI only works on Linux."    exit 1fi# Figure out directory of scriptMYDIR=`dirname $0`cd $MYDIR/srcecho "Running ./configure..."./configureif [ "$?" != 0 ] ; then    echo "Oops!  It looks like ./configure failed."    exit 1fiecho "Running make..."makeif [ "$?" != 0 ] ; then    echo "Oops!  It looks like make failed."    exit 1fiecho "Running make install..."make installif [ "$?" != 0 ] ; then    echo "Oops!  It looks like make install failed."    exit 1fiecho "Building GUI wrapper..."cd ../guimakeif [ "$?" != 0 ] ; then    echo "Oops!  It looks like make failed."    exit 1fiecho "Installing GUI..."make installif [ "$?" != 0 ] ; then    echo "Oops!  It looks like make install failed."    exit 1fi# Install entry in KDE menuif test -n "$KDEDIR" ; then    echo "Installing KDE menu entry Internet : TkPPPoE..."    mkdir -p "$KDEDIR/share/applnk/Internet"    cat <<EOF > "$KDEDIR/share/applnk/Internet/tkpppoe.kdelnk"# KDE Config File[KDE Desktop Entry]Name=TkPPPoEComment=Start/Stop PPPoE connectionsExec=tkpppoeTerminal=0Type=ApplicationEOFfi# Install entry in GNOME menusGNOMEDIR=`gnome-config --datadir 2>/dev/null`if test -n "$GNOMEDIR" ; then    echo "Installing GNOME menu entry Internet : TkPPPoE..."    mkdir -p "$GNOMEDIR/gnome/apps/Internet"cat <<EOF > "$GNOMEDIR/gnome/apps/Internet/tkpppoe.desktop"[Desktop Entry]Name=TkPPPoEComment=Start/Stop PPPoE connectionsExec=tkpppoeTerminal=0Type=ApplicationEOFfiecho "Running GUI configuration tool..."tkpppoe &exit 0

⌨️ 快捷键说明

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