home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 15 / hacker15 / 15_H4CK3R#15.ISO / linux_security / engarde / ENGARDE_COMMUNITY_FEINT.ISO / bin / remadmin < prev    next >
Encoding:
Text File  |  2002-05-30  |  835 b   |  39 lines

  1. #!/bin/sh
  2. # Starts the proper linuxconf front-end
  3.  
  4. # default to ncurses front end; it is easier to use than gecko right now
  5. # If you like gecko, you can uncomment the following line
  6. # NEWTCONF=/bin/gecko
  7. if [ "$1" = "--text" ] ; then
  8.     shift
  9.     if [ -x "$NEWTCONF" ] ; then
  10.         exec $NEWTCONF $@
  11.     fi
  12. elif [ "$DISPLAY" != "" ] ; then
  13.     GNOMECONF=/usr/bin/gnome-linuxconf
  14.     WXXTCONF=/usr/X11R6/bin/wxxt-linuxconf
  15.     if [ -x "$GNOMECONF" ] ; then
  16.         exec $GNOMECONF $@
  17.     elif [ -x "$WXXTCONF" ] ; then
  18.         exec $WXXTCONF $@
  19.     elif [ -x "$NEWTCONF" ] ; then
  20.         exec $NEWTCONF $@
  21.     fi
  22. else
  23.     if [ -x "$NEWTCONF" ] ; then
  24.         exec $NEWTCONF $@
  25.     fi
  26. fi
  27. if [ "$1" = "--pipe" ] ; then
  28.     # tell linuxconf to switch in ncurse mode
  29.     if [ "$2" != "" ] ; then
  30.         echo ncurses >&$2
  31.     else
  32.         echo ncurses
  33.     fi
  34. else
  35.     echo No suitable linuxconf front-end installed
  36. fi
  37. exit -1
  38.  
  39.