1 Star 0 Fork 0

暗影小三/vrp-pppoe-3.11

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
go-gui 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
sunke 提交于 2013-08-31 07:51 . first commit rp-pppoe
#!/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 Linux
if test "`uname`" != "Linux" ; then
echo "Sorry, the GUI only works on Linux."
exit 1
fi
# Figure out directory of script
MYDIR=`dirname $0`
cd $MYDIR/src
echo "Running ./configure..."
./configure
if [ "$?" != 0 ] ; then
echo "Oops! It looks like ./configure failed."
exit 1
fi
echo "Running make..."
make
if [ "$?" != 0 ] ; then
echo "Oops! It looks like make failed."
exit 1
fi
echo "Running make install..."
make install
if [ "$?" != 0 ] ; then
echo "Oops! It looks like make install failed."
exit 1
fi
echo "Building GUI wrapper..."
cd ../gui
make
if [ "$?" != 0 ] ; then
echo "Oops! It looks like make failed."
exit 1
fi
echo "Installing GUI..."
make install
if [ "$?" != 0 ] ; then
echo "Oops! It looks like make install failed."
exit 1
fi
# Install entry in KDE menu
if 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=TkPPPoE
Comment=Start/Stop PPPoE connections
Exec=tkpppoe
Terminal=0
Type=Application
EOF
fi
# Install entry in GNOME menus
GNOMEDIR=`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=TkPPPoE
Comment=Start/Stop PPPoE connections
Exec=tkpppoe
Terminal=0
Type=Application
EOF
fi
echo "Running GUI configuration tool..."
tkpppoe &
exit 0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jimyfar/vrp-pppoe-3.11.git
git@gitee.com:jimyfar/vrp-pppoe-3.11.git
jimyfar
vrp-pppoe-3.11
vrp-pppoe-3.11
master

搜索帮助