# The file is WirelessLeiden specific. Please make all changes in exodus
#
# Generated on {% now "G:i j-n-Y" %}
# by {{ node.host }}
#
# Node: {{ node.name }}
# File: rc.local

{% for nic in node.interface_set.all %}
{% if nic.ssid %}
/usr/sbin/wicontrol -i {{ nic.iface }} -s {{ nic.shortdesc }} # Nickname
/usr/sbin/wicontrol -i {{ nic.iface }} -P 0  # PowerSave
/usr/sbin/wicontrol -i {{ nic.iface }} -Z    # Zero SNR cache
/usr/sbin/wicontrol -i {{ nic.iface }} -p {{ nic.wifimode }}  # {{ nic.wifidesc }}
/usr/sbin/wicontrol -i {{ nic.iface }} -c 1  # broadcasting essid on
/usr/sbin/wicontrol -i {{ nic.iface }} -n {{ nic.ssid }} # network name
/usr/sbin/wicontrol -i {{ nic.iface }} -q {{ nic.ssid }} # ESSID
/usr/sbin/wicontrol -i {{ nic.iface }} -f {{ nic.channel }} # Channel
{% endif %}
{% endfor %}
