3 #***********************************************************************
7 # Quick-start shell script to set up PPPoE and GUI wrapper
9 # Copyright (C) 2000 Roaring Penguin Software Inc.
12 #***********************************************************************
14 # GUI only works on Linux
15 if test "`uname`" != "Linux" ; then
16 echo "Sorry, the GUI only works on Linux."
20 # Figure out directory of script
24 echo "Running ./configure..."
26 if [ "$?" != 0 ] ; then
27 echo "Oops! It looks like ./configure failed."
31 echo "Running make..."
33 if [ "$?" != 0 ] ; then
34 echo "Oops! It looks like make failed."
38 echo "Running make install..."
41 if [ "$?" != 0 ] ; then
42 echo "Oops! It looks like make install failed."
46 echo "Building GUI wrapper..."
49 if [ "$?" != 0 ] ; then
50 echo "Oops! It looks like make failed."
54 echo "Installing GUI..."
57 if [ "$?" != 0 ] ; then
58 echo "Oops! It looks like make install failed."
62 # Install entry in KDE menu
63 if test -n "$KDEDIR" ; then
64 echo "Installing KDE menu entry Internet : TkPPPoE..."
65 mkdir
-p "$KDEDIR/share/applnk/Internet"
66 cat <<EOF > "$KDEDIR/share/applnk/Internet/tkpppoe.kdelnk"
70 Comment=Start/Stop PPPoE connections
77 # Install entry in GNOME menus
78 GNOMEDIR
=`gnome-config --datadir 2>/dev/null`
79 if test -n "$GNOMEDIR" ; then
80 echo "Installing GNOME menu entry Internet : TkPPPoE..."
81 mkdir
-p "$GNOMEDIR/gnome/apps/Internet"
82 cat <<EOF > "$GNOMEDIR/gnome/apps/Internet/tkpppoe.desktop"
85 Comment=Start/Stop PPPoE connections
91 echo "Running GUI configuration tool..."