changeset 92133:7c818ca7aedb

Yoni Rabkin <yoni at rabkins.net> (tiny change) (iwconfig-program, iwconfig-program-options): New variables. (iwconfig): New function.
author Glenn Morris <rgm@gnu.org>
date Sat, 23 Feb 2008 20:01:44 +0000
parents 25747d612a01
children ce1187e14779
files lisp/net/net-utils.el
diffstat 1 files changed, 20 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/net/net-utils.el	Sat Feb 23 19:35:42 2008 +0000
+++ b/lisp/net/net-utils.el	Sat Feb 23 20:01:44 2008 +0000
@@ -109,6 +109,16 @@
   :group 'net-utils
   :type  '(repeat string))
 
+(defcustom iwconfig-program "iwconfig"
+  "Program to print wireless network configuration information."
+  :group 'net-utils
+  :type 'string)
+
+(defcustom iwconfig-program-options nil
+ "Options for `iwconfig-program'."
+ :group 'net-utils
+ :type '(repeat string))
+
 (defcustom netstat-program  "netstat"
   "Program to print network statistics."
   :group 'net-utils
@@ -366,6 +376,16 @@
 (defalias 'ifconfig 'ipconfig)
 
 ;;;###autoload
+(defun iwconfig ()
+  "Run iwconfig program."
+  (interactive)
+  (net-utils-run-program
+   "Iwconfig"
+   (concat "** Iwconfig ** " iwconfig-program " ** ")
+   iwconfig-program
+   iwconfig-program-options))
+
+;;;###autoload
 (defun netstat ()
   "Run netstat program."
   (interactive)