Changeset 781


Ignore:
Timestamp:
Nov 20, 2016, 6:38:11 PM (3 years ago)
Author:
amain
Message:

Store hostapd configuration examples and interfaces.ar71xx in the right location

Location:
trunk/debian/packages/debwrt-net/trunk/etc
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/packages/debwrt-net/trunk/etc/network/interfaces.ar71xx

    r778 r781  
    3737# This example assumes:
    3838#
    39 # CPU   5      - swconfig dev switch0 help | grep "cpu @"
     39# CPU   5      - swconfig dev switch0 help | grep "cpu @"
    4040# -------
    4141# LAN   4      - vlan 1
    4242# LAN   3      - vlan 1
    4343# LAN   2      - vlan 1
    44 # LAN   1      - vlan 1
    45 # WAN   0      - vlan 2
     44# LAN   1      - vlan 1
     45# WAN   0      - vlan 2
    4646#
    4747# The 't' in vlan ports make sure that a vlan tag is set and
     
    8787
    8888
     89# Try to add wifi interface to bridge manually, though at boot
     90# the interface won't be available yet. This is mainly useful
     91# when bringing down/up the bridge without down/up on wifi.
    8992auto br-lan
    9093iface br-lan inet static
     
    9497    address        192.168.1.1
    9598    netmask        255.255.255.0
     99    post-up   brctl addif br-lan wifi &>/dev/null | true
     100    post-up   start-stop-daemon --start  \
     101                                --oknodo \
     102                                --quiet  \
     103                                --pidfile /var/run/dnsmasq.br-lan.pid \
     104                                --exec /usr/sbin/dnsmasq \
     105                                  -- --pid-file=/var/run/dnsmasq.br-lan.pid \
     106                                     --conf-file=/etc/dnsmasq-debwrt.conf
     107    pre-down  start-stop-daemon --stop \
     108                                --pidfile /var/run/dnsmasq.br-lan.pid \
     109                                --exec /usr/sbin/dnsmasq
    96110
    97111# Hostapd will add wifi interface to bridge. Hence this section
    98 # appears after the br-lan section.
     112# appears after the br-lan section. To experiment with more
     113# channels and more power, uncomment below. Please note that
     114# regulations are there for a reason; setting different region
     115# and/or increasing power might now be allowed.
    99116auto wifi
    100117iface wifi inet manual
    101118    hostapd   /etc/hostapd/hostapd-wpa.conf
    102119    pre-up    /sbin/ip link set dev wifi up
     120    #pre-up /usr/sbin/iw reg set BO           # set channel and power options
     121    #pre-up /sbin/iwconfig wifi txpower 23dbm # 20 = 100mw, 21 = 125mw, 22 = 185, 23 = 200 (max 27)
    103122    post-down /sbin/ip link set dev wifi down
    104123
Note: See TracChangeset for help on using the changeset viewer.