(iwconfig-program, iwconfig-program-options): New variables.
(iwconfig): New function.
: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
;;;###autoload
(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."