Commit Graph

41 Commits

Author SHA1 Message Date
Michael Stapelberg
bbd9e7f85d Move configuration file parsing into wmiistatus.c, saves a lot of hassle/SLOC/files 2009-01-25 23:18:25 +01:00
Michael Stapelberg
2abe135288 Simplify config file parsing *a lot* 2009-01-25 23:03:19 +01:00
Michael Stapelberg
dc6b642eff Fix warnings due to unused variables on NetBSD 2009-01-25 22:57:08 +01:00
Michael Stapelberg
62fe9d1210 Add code for getting process status (running/not) and load on NetBSD 2009-01-25 22:51:54 +01:00
Michael Stapelberg
851dad9655 Append \n to error messages to make them readable, regardless of circumstances 2009-01-25 21:00:49 +01:00
Michael Stapelberg
5bdb2a95df Make linux-dependant part use #ifdef LINUX 2009-01-25 20:50:02 +01:00
Michael Stapelberg
4e19825564 Remove unused variables, use correct limit constants 2009-01-25 20:24:34 +01:00
Michael Stapelberg
7fe3b0657b Display details also when battery is loaded 2009-01-25 20:08:57 +01:00
Michael Stapelberg
cc0484b216 Use correct format string (%ld) 2009-01-25 19:57:20 +01:00
Michael Stapelberg
a85e482f7b Eliminate more unnecessary code (pid file checking) 2009-01-25 19:54:41 +01:00
Michael Stapelberg
a9bf807cdd Beautify wireless code 2009-01-25 19:43:02 +01:00
Michael Stapelberg
5aa7639297 Beautify the code for getting ip address/ethernet speed, only use one static socket 2009-01-25 19:11:53 +01:00
Michael Stapelberg
618990292c Document everything, wrap comments at 80 characters, handle socket() return code 2009-01-25 18:57:54 +01:00
Michael Stapelberg
9b7963c4fc Handle common errors without dying 2009-01-09 00:13:18 +01:00
Michael Stapelberg
513cfe8f1b Don't show eth-speed if it was never set 2008-12-10 11:11:31 +01:00
Michael Stapelberg
9388ee56e1 Correctly open new files 2008-11-30 01:46:01 +01:00
Michael Stapelberg
d9ff643b10 Use 3 characters for WLAN signal strength 2008-11-13 19:43:27 +01:00
Michael Stapelberg
b052bfa79b Remove debugmessage 2008-10-29 23:29:06 +01:00
Michael Stapelberg
7d0f324b7a Make wmiistatus run all the time and wait for wmii_path to exist
Instead of exiting as a file inside wmii_path cannot be opened, we wait
until wmii_path is found again (particularly the /rbar part, that is),
re-setup our files and continue as if nothing happened.

This will make wmiistatus survive restarts of wmii and make it wait for
/mnt/wmii to appear when booting up (and wmiistatus gets started before
wmii itself)
2008-10-29 23:26:26 +01:00
Michael Stapelberg
554a984fe6 Add support for differently named uevent data and hint for 9pnet_fd 2008-10-24 23:45:45 +02:00
Michael Stapelberg
fe75f783ed Add default config to git 2008-10-24 22:27:11 +02:00
Michael Stapelberg
bd16ff54c6 Remove dh_prep as it deletes the configfile in /etc 2008-10-24 22:17:21 +02:00
Michael Stapelberg
8db7109e26 Add debian packaging files to repository 2008-10-24 21:49:41 +02:00
Michael Stapelberg
7f39bf160c Install manpages aswell 2008-10-24 21:39:28 +02:00
Michael Stapelberg
6344135cb2 Add release target to Makefile, use -f for deletion 2008-10-24 21:29:00 +02:00
Michael Stapelberg
62f3fc6838 Implement getting current speed from network interfaces
The network interface must be supported by ethtool, as its syscall is
used for this. This is at least the case for e1000 cards.

Unfortunately, getting the speed needs root privileges. Therefore, you
have to enable it in configuration separately.
2008-10-24 21:05:20 +02:00
Michael Stapelberg
753144d58b Make source splint-clean (invoked with -weak) 2008-10-10 10:33:05 +02:00
Michael Stapelberg
c5b50af388 More comments 2008-10-07 18:38:22 +02:00
Michael Stapelberg
8f5d77d5e4 Add option parsing via getopt, cleanup Makefile 2008-10-07 15:33:54 +02:00
Michael Stapelberg
b9948793a5 Add manpage, ignore spaces in tokens, introduce interval 2008-10-07 15:25:41 +02:00
Michael Stapelberg
a49ff50578 Make everything configurable 2008-10-07 13:41:10 +02:00
Michael Stapelberg
7c79d735d8 Implement colors for runwatches and WLAN down 2008-10-07 12:05:57 +02:00
Michael Stapelberg
6f705c20de Make runwatches work again 2008-10-07 11:54:04 +02:00
Michael Stapelberg
7fa8c4b9a9 Write information in separate files, define order
wmii will show them with little border between, better than the previous
method, where an ascii bar was shown
2008-10-07 11:45:52 +02:00
Michael Stapelberg
e94e252089 Strip all non-digit characters from pidbuf
This is needed for dhclient's pidfile, as it contains a newline
2008-10-07 11:22:35 +02:00
Michael Stapelberg
e31a85eb3b Make some formats/paths configurable, add initscript 2008-10-04 19:32:35 +02:00
Michael Stapelberg
e68449ee1d Implement run_watches 2008-10-04 19:16:41 +02:00
Michael Stapelberg
79dfdafb21 Get IP address for WLAN interface aswell 2008-10-04 18:51:27 +02:00
Michael Stapelberg
65251638dd Cleanup
- Add more warning-flags to Makefile and fix warnings
- Create config.h as a central place for paths/names
- Add wmiistatus.h for definitions
2008-10-04 18:42:12 +02:00
Michael Stapelberg
ed49d5983e Add license, display correct WLAN status 2008-10-04 15:10:50 +02:00
Michael Stapelberg
949728e8c5 Initial commit 2008-10-03 03:18:09 +02:00