Ticket #695: airmon-prefix.diff

File airmon-prefix.diff, 1.4 KB (added by bugfood-c@…, 4 months ago)

airmon-ng: patch to fix MON_PREFIX

  • scripts/airmon-ng

     
    1717        USE_IW=1 
    1818fi 
    1919 
    20 if [ "x$MON_PREFIX"="x" ] 
    21 then 
    22 MON_PREFIX="mon" 
    23 fi 
     20# allow prefix to be overridden by environment variable 
     21MON_PREFIX=${MON_PREFIX:-"mon"} 
    2422 
    2523PROCESSES="wpa_action\|wpa_supplicant\|wpa_cli\|dhclient\|ifplugd\|dhcdbd\|dhcpcd\|NetworkManager\|knetworkmanager\|avahi-autoipd\|avahi-daemon\|wlassistant\|wifibox" 
    2624PS_ERROR="invalid" 
  • manpages/airmon-ng.1

     
    2121.TP 
    2222.I check [kill] 
    2323List all possible programs that could interfere with the wireless card. If 'kill' is specified, it will try to kill all of them. 
     24.SH ENVIRONMENT VARIABLES 
     25.PP 
     26.TP 
     27.I MON_PREFIX 
     28Monitor interfaces will normally be created with the prefix 'mon', resulting in 'mon0', 'mon1', etc.. MON_PREFIX can be set to specify a custom prefix value. 
    2429.SH AUTHOR 
    2530This manual page was written by Adam Cecile <gandalf@le-vert.net> for the Debian system (but may be used by others). 
    2631Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation