diff options
| author | Glenn Morris | 2008-02-23 20:01:44 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-02-23 20:01:44 +0000 |
| commit | e69ec7213e2e995c4f74a4afeff1b53676fa2a2c (patch) | |
| tree | e76a8ebf702c5a973e9b30fa16f86310897e7a55 | |
| parent | 0329d8a3e84dcf8cc2fb1d8913f86a935ebaeb1e (diff) | |
| download | emacs-e69ec7213e2e995c4f74a4afeff1b53676fa2a2c.tar.gz emacs-e69ec7213e2e995c4f74a4afeff1b53676fa2a2c.zip | |
Yoni Rabkin <yoni at rabkins.net> (tiny change)
(iwconfig-program, iwconfig-program-options): New variables.
(iwconfig): New function.
| -rw-r--r-- | lisp/net/net-utils.el | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lisp/net/net-utils.el b/lisp/net/net-utils.el index fcfb8524b09..e2e32436078 100644 --- a/lisp/net/net-utils.el +++ b/lisp/net/net-utils.el | |||
| @@ -109,6 +109,16 @@ These options can be used to limit how many ICMP packets are emitted." | |||
| 109 | :group 'net-utils | 109 | :group 'net-utils |
| 110 | :type '(repeat string)) | 110 | :type '(repeat string)) |
| 111 | 111 | ||
| 112 | (defcustom iwconfig-program "iwconfig" | ||
| 113 | "Program to print wireless network configuration information." | ||
| 114 | :group 'net-utils | ||
| 115 | :type 'string) | ||
| 116 | |||
| 117 | (defcustom iwconfig-program-options nil | ||
| 118 | "Options for `iwconfig-program'." | ||
| 119 | :group 'net-utils | ||
| 120 | :type '(repeat string)) | ||
| 121 | |||
| 112 | (defcustom netstat-program "netstat" | 122 | (defcustom netstat-program "netstat" |
| 113 | "Program to print network statistics." | 123 | "Program to print network statistics." |
| 114 | :group 'net-utils | 124 | :group 'net-utils |
| @@ -366,6 +376,16 @@ If your system's ping continues until interrupted, you can try setting | |||
| 366 | (defalias 'ifconfig 'ipconfig) | 376 | (defalias 'ifconfig 'ipconfig) |
| 367 | 377 | ||
| 368 | ;;;###autoload | 378 | ;;;###autoload |
| 379 | (defun iwconfig () | ||
| 380 | "Run iwconfig program." | ||
| 381 | (interactive) | ||
| 382 | (net-utils-run-program | ||
| 383 | "Iwconfig" | ||
| 384 | (concat "** Iwconfig ** " iwconfig-program " ** ") | ||
| 385 | iwconfig-program | ||
| 386 | iwconfig-program-options)) | ||
| 387 | |||
| 388 | ;;;###autoload | ||
| 369 | (defun netstat () | 389 | (defun netstat () |
| 370 | "Run netstat program." | 390 | "Run netstat program." |
| 371 | (interactive) | 391 | (interactive) |