#!/bin/bash BOLD=`tput bold` BLUE=`tput setaf 4` NC=`tput sgr0` # check_firstrun() if [ ! -d ~/.wicd ]; then mkdir ~/.wicd fi # Make sure the user knows WHEREAREMYFILES ;-) if [ -e %DOCDIR%WHEREAREMYFILES ] && [ ! -L ~/.wicd/WHEREAREMYFILES ]; then ln -s %DOCDIR%WHEREAREMYFILES ~/.wicd/WHEREAREMYFILES fi if [ "$DISPLAY" = "" ] && [ -x "%BIN%wicd-curses" ]; then if [ ! -f ~/.wicd/CLIENT_CURSES_WARNING ]; then echo "NOTICE: We see that you don't have an X server active on this console." echo "We will now be starting ${BOLD}${BLUE}wicd-curses${NC}. If you desire" echo "more information about what is happening here, please read:" echo echo "man wicd-client" echo "-or-" echo "man wicd-curses" echo echo "We apologize for any inconvenience. This message will not be displayed again." echo "Please press enter to continue..." read junk cat >>~/.wicd/CLIENT_CURSES_WARNING<