1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 13:28:08 +01:00

Merged with r247 of rworkman's branch, which:

Adds ~crux support to setup.py
  Slightly reformats the wicd-client.1 man page, and fixes a spelling error
  Fixes some stuff in the wicd-client script.  I just accepted the other "nitpicks", too.

I do not know why the wicd.glade file was changed.
There were conflicts in merging of the wicd-client script and man page.
This commit is contained in:
Andrew Psaltis
2009-01-23 22:18:18 -05:00
4 changed files with 24 additions and 30 deletions

View File

@@ -456,6 +456,7 @@
<property name="right_attach">2</property> <property name="right_attach">2</property>
<property name="top_attach">6</property> <property name="top_attach">6</property>
<property name="bottom_attach">7</property> <property name="bottom_attach">7</property>
<property name="y_options"></property>
</packing> </packing>
</child> </child>
<child> <child>

View File

@@ -1,10 +1,10 @@
#!/bin/bash #!/bin/bash
BOLD=`tput bold` BOLD=$(tput bold)
BLUE=`tput setaf 4` BLUE=$(tput setaf 4)
NC=`tput sgr0` NC=$(tput sgr0)
# check_firstrun() # check_firstrun()
if [ ! -d ~/.wicd ]; then if [ ! -d ~/.wicd ]; then
mkdir ~/.wicd mkdir -p ~/.wicd
fi fi
# Make sure the user knows WHEREAREMYFILES ;-) # Make sure the user knows WHEREAREMYFILES ;-)
if [ -e %DOCDIR%WHEREAREMYFILES ] && [ ! -L ~/.wicd/WHEREAREMYFILES ]; then if [ -e %DOCDIR%WHEREAREMYFILES ] && [ ! -L ~/.wicd/WHEREAREMYFILES ]; then
@@ -12,34 +12,23 @@ if [ -e %DOCDIR%WHEREAREMYFILES ] && [ ! -L ~/.wicd/WHEREAREMYFILES ]; then
fi fi
if [ "$DISPLAY" = "" ] && [ -x "%BIN%wicd-curses" ]; then if [ "$DISPLAY" = "" ] && [ -x "%BIN%wicd-curses" ]; then
if [ ! -f ~/.wicd/CLIENT_CURSES_WARNING ]; then if [ ! -f ~/.wicd/CLIENT_CURSES_WARNING ]; then
echo "NOTICE: We see that you don't have an X server active on this console." printf "NOTICE: You do not have an X server active on this console, \n"
echo "We will now be starting ${BOLD}${BLUE}wicd-curses${NC}. If you desire" printf "so ${BOLD}${BLUE}wicd-curses${NC} will be started instead. \n"
echo "more information about what is happening here, please read:" printf "Please see the wicd-client and/or wicd-curses manual pages \n"
echo printf "for more information about this error and resulting message. \n"
echo "man wicd-client" printf "\n"
echo "-or-" printf "This message will not be displayed again. \n"
echo "man wicd-curses" printf "Press enter to continue... \n"
echo
echo "We apologize for any inconvenience. This message will not be displayed again."
echo "Please press enter to continue..."
read junk read _junk
cat >>~/.wicd/CLIENT_CURSES_WARNING<<EOF cat >> ~/.wicd/CLIENT_CURSES_WARNING << EOF
This file is what wicd-client looks for so that it doesn't try to tell you that The wicd-client script checks for the existence of this file to determine
it is trying to launch the curses client so that it doesn't surprise non- whether it should warn the user before launching wicd-curses instead, in
technical users. the event of the gui client being launched outside of the X Window environment.
Please keep this file. If you remove it, then wicd-client will bark at If you delete this file, then wicd-client will print the warning if it is
you if you try to launch wicd-client on a screen that is not running X. launched outside of X (and then recreate this file again).
Or, you could just run "touch ~/.wicd/CLIENT_CURSES_WARNING", and the same
objective will be met.
Have a nice day.
~The Wicd Developers
EOF EOF
#touch ~/.wicd/CLIENT_CURSES_WARNING
fi fi
exec %BIN%wicd-curses exec %BIN%wicd-curses
fi fi

View File

@@ -4,7 +4,9 @@ wicd-client \- manual page for wicd-client
.SH DESCRIPTION .SH DESCRIPTION
wireless (and wired) connection daemon front\-end. wireless (and wired) connection daemon front\-end.
If wicd-curses(8) is instaled, and you attempt to run wicd-client without an active X server on the current terminal, wicd-client will attempt to run wicd-curses(8) instead. It will warn you the first time this happens. If wicd-curses(8) is installed, and you attempt to run wicd-client without
an active X server on the current terminal, wicd-client will attempt to run
wicd-curses(8) instead. It will warn you the first time this happens.
.SS "Arguments:" .SS "Arguments:"
.TP .TP
\fB\-n\fR \fB\-\-no\-tray\fR \fB\-n\fR \fB\-\-no\-tray\fR

View File

@@ -155,6 +155,8 @@ class configure(Command):
elif os.path.exists('/etc/pld-release'): elif os.path.exists('/etc/pld-release'):
self.init = '/etc/rc.d/init.d/' self.init = '/etc/rc.d/init.d/'
self.initfile = 'init/pld/wicd' self.initfile = 'init/pld/wicd'
elif os.path.exists('/usr/bin/crux'):
self.init = '/etc/rc.d/'
else: else:
self.init = 'FAIL' self.init = 'FAIL'
self.initfile = 'FAIL' self.initfile = 'FAIL'