diff options
author | John Crispin <john@openwrt.org> | 2011-01-22 22:43:51 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2011-01-22 22:43:51 +0000 |
commit | 079ba5ac140af300db24bc7124543aa2ad9c6f62 (patch) | |
tree | 9aa2771d6d5e45ca5eb47c274d0f5c23e1e64fe6 /target/linux/x86/geos/base-files/etc/uci-defaults/wireless | |
parent | fa542df6e1f3cab6b5dbc1494001be597989d2fc (diff) | |
download | upstream-079ba5ac140af300db24bc7124543aa2ad9c6f62.tar.gz upstream-079ba5ac140af300db24bc7124543aa2ad9c6f62.tar.bz2 upstream-079ba5ac140af300db24bc7124543aa2ad9c6f62.zip |
* adds sane default uci environment * adds sane default package selection
contributed by Philip Prindeville
SVN-Revision: 25065
Diffstat (limited to 'target/linux/x86/geos/base-files/etc/uci-defaults/wireless')
-rw-r--r-- | target/linux/x86/geos/base-files/etc/uci-defaults/wireless | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/target/linux/x86/geos/base-files/etc/uci-defaults/wireless b/target/linux/x86/geos/base-files/etc/uci-defaults/wireless new file mode 100644 index 0000000000..2b0fd4a870 --- /dev/null +++ b/target/linux/x86/geos/base-files/etc/uci-defaults/wireless @@ -0,0 +1,27 @@ +#!/bin/sh + +[ -f /etc/config/wireless ] || echo "package wireless" > /etc/config/wireless + +uci batch <<__EOF__ + +delete wireless.radio0 +delete wireless.@wifi-iface[0] + +set wireless.wlan0=wifi-device +set wireless.wlan0.type=mac80211 +set wireless.wlan0.phy=phy0 +set wireless.wlan0.channel=11 +set wireless.wlan0.hwmode=11g +set wireless.wlan0.country=US + +add wireless wifi-iface +set wireless.@wifi-iface[-1].device=wlan0 +set wireless.@wifi-iface[-1].network=lan +set wireless.@wifi-iface[-1].mode=ap +set wireless.@wifi-iface[-1].ssid=typhoon +set wireless.@wifi-iface[-1].encryption=psk2+aes +set wireless.@wifi-iface[-1].key="passphrase" +set wireless.@wifi-iface[-1].hidden=0 + +commit wireless +__EOF__ |