mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
[geos]
* adds sane default uci environment * adds sane default package selection contributed by Philip Prindeville git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25065 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
16
target/linux/x86/geos/base-files/etc/uci-defaults/network
Normal file
16
target/linux/x86/geos/base-files/etc/uci-defaults/network
Normal file
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci batch <<__EOF__
|
||||
|
||||
delete network.lan
|
||||
|
||||
set network.lan=interface
|
||||
set network.lan.type=bridge
|
||||
set network.lan.ifname="eth0 eth1"
|
||||
set network.lan.proto=static
|
||||
set network.lan.ipaddr="192.168.1.1"
|
||||
set network.lan.netmask="255.255.255.0"
|
||||
set network.lan.nat=1
|
||||
|
||||
commit network
|
||||
__EOF__
|
||||
21
target/linux/x86/geos/base-files/etc/uci-defaults/ppp
Normal file
21
target/linux/x86/geos/base-files/etc/uci-defaults/ppp
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
uci batch <<__EOF__
|
||||
|
||||
set network.wan=interface
|
||||
set network.wan.proto='pppoa'
|
||||
set network.wan.atmdev=0
|
||||
set network.wan.card=0
|
||||
set network.wan.vpi=0
|
||||
set network.wan.vci=32
|
||||
set network.wan.encaps='vc'
|
||||
set network.wan.username='username@myisp.net'
|
||||
set network.wan.password='password'
|
||||
set network.wan.keepalive=3
|
||||
set network.wan.defaultroute=1
|
||||
set network.wan.peerdns=1
|
||||
set network.wan.pppd_options='kdebug 1 debug noccp'
|
||||
set network.wan.auto=1
|
||||
|
||||
commit network
|
||||
__EOF__
|
||||
27
target/linux/x86/geos/base-files/etc/uci-defaults/wireless
Normal file
27
target/linux/x86/geos/base-files/etc/uci-defaults/wireless
Normal file
@@ -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__
|
||||
Reference in New Issue
Block a user