home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- # Starts the proper linuxconf front-end
-
- # default to ncurses front end; it is easier to use than gecko right now
- # If you like gecko, you can uncomment the following line
- # NEWTCONF=/bin/gecko
- if [ "$1" = "--text" ] ; then
- shift
- if [ -x "$NEWTCONF" ] ; then
- exec $NEWTCONF $@
- fi
- elif [ "$DISPLAY" != "" ] ; then
- GNOMECONF=/usr/bin/gnome-linuxconf
- WXXTCONF=/usr/X11R6/bin/wxxt-linuxconf
- if [ -x "$GNOMECONF" ] ; then
- exec $GNOMECONF $@
- elif [ -x "$WXXTCONF" ] ; then
- exec $WXXTCONF $@
- elif [ -x "$NEWTCONF" ] ; then
- exec $NEWTCONF $@
- fi
- else
- if [ -x "$NEWTCONF" ] ; then
- exec $NEWTCONF $@
- fi
- fi
- if [ "$1" = "--pipe" ] ; then
- # tell linuxconf to switch in ncurse mode
- if [ "$2" != "" ] ; then
- echo ncurses >&$2
- else
- echo ncurses
- fi
- else
- echo No suitable linuxconf front-end installed
- fi
- exit -1
-
-