option ifname eth0
option type bridge
option proto static
- option ipaddr 192.168.1.1
+ option ipaddr 192.168.10.1
option netmask 255.255.255.0
option ip6assign 60
option timezone UTC
config timeserver ntp
- list server 0.librecmc.pool.ntp.org
- list server 1.librecmc.pool.ntp.org
- list server 2.librecmc.pool.ntp.org
- list server 3.librecmc.pool.ntp.org
+ list server 0.pool.ntp.org
+ list server 1.pool.ntp.org
+ list server 2.pool.ntp.org
+ list server 3.pool.ntp.org
option enabled 1
option enable_server 0
set network.lan.force_link=1
set network.lan.type='bridge'
set network.lan.proto='static'
-set network.lan.ipaddr='192.168.1.1'
+set network.lan.ipaddr='192.168.10.1'
set network.lan.netmask='255.255.255.0'
set network.lan.ip6assign='60'
EOF
$dev_id
$ht_capab
# REMOVE THIS LINE TO ENABLE WIFI:
- option disabled 1
+ option disabled 0
config wifi-iface
option device radio$devidx
option network lan
option mode ap
option ssid libreCMC
- option encryption none
+ option encryption 'psk2'
+ option key 'librecmc'
EOF
devidx=$(($devidx + 1))
ath79_register_usb();
/* register eth0 as WAN, eth1 as LAN */
- ath79_init_mac(ath79_eth1_data.mac_addr, art+TPE_R1100_MAC1_OFFSET, 0);
- ath79_init_mac(ath79_eth0_data.mac_addr, art+TPE_R1100_MAC0_OFFSET, 0);
+ ath79_init_mac(ath79_eth0_data.mac_addr, art+TPE_R1100_MAC1_OFFSET, 0);
+ ath79_init_mac(ath79_eth1_data.mac_addr, art+TPE_R1100_MAC0_OFFSET, 0);
ath79_register_mdio(0, 0x0);
- ath79_register_eth(1);
ath79_register_eth(0);
+ ath79_register_eth(1);
/* register wireless mac with cal data */
ath79_register_wmac(art + TPE_R1100_CALDATA_OFFSET, art + TPE_R1100_WMAC_MAC_OFFSET);