6
if [ ! -d "$HOME/.wicd" ]; then
9
# Make sure the user knows WHEREAREMYFILES ;-)
10
if [ -e "%VARLIB%WHEREAREMYFILES" ] && [ ! -L "$HOME/.wicd/WHEREAREMYFILES" ]; then
11
ln -s "%VARLIB%WHEREAREMYFILES" "$HOME/.wicd/WHEREAREMYFILES"
13
if [ "$DISPLAY" = "" ]; then
14
if [ -x "%BIN%wicd-curses" ]; then
15
if [ ! -f "$HOME/.wicd/CLIENT_CURSES_WARNING" ]; then
16
printf "NOTICE: You do not have an X server active on this console, \n"
17
printf "so ${BOLD}${BLUE}wicd-curses${NC} will be started instead. \n"
18
printf "Please see the wicd-client and/or wicd-curses manual pages \n"
19
printf "for more information about this error and resulting message. \n"
21
printf "This message will not be displayed again. \n"
22
printf "Press enter to continue... \n"
25
cat >> "$HOME/.wicd/CLIENT_CURSES_WARNING" << EOF
26
The wicd-client script checks for the existence of this file to determine
27
whether it should warn the user before launching wicd-curses instead, in
28
the event of the gui client being launched outside of the X Window environment.
30
If you delete this file, then wicd-client will print the warning if it is
31
launched outside of X (and then recreate this file again).
34
exec %BIN%wicd-curses $@
37
printf "NOTICE: You do not have an X server active on this console, \n"
38
printf "but you do not appear to have ${BOLD}${BLUE}wicd-curses${NC}\n"
39
printf "installed on this system. We'd normally be running it here.\n"
40
printf "Please see the wicd-client manual page for more information.\n"