Portál AbcLinuxu, 28. prosince 2025 05:21
#!/bin/sh
###### ath0 - klient ke zdenkovi
/usr/sbin/wlanconfig ath0 destroy
/usr/sbin/wlanconfig ath0 create wlandev wifi0 wlanmode sta
sleep 2
/usr/sbin/iwconfig ath0 essid "PTP_BN_PV"
sleep 2
/usr/sbin/iwpriv ath0 mode 1
sleep 2
/usr/sbin/athctrl ath0 -d 1400
sleep 2
/sbin/ifconfig ath0 10.193.124.10 netmask 255.255.255.248 broadcast 10.193.124.15 up
###### ath1 - AP 1
/usr/sbin/wlanconfig ath1 destroy
/usr/sbin/wlanconfig ath1 create wlandev wifi1 wlanmode ap
sleep 2
/usr/sbin/iwconfig ath1 essid "ap_gavanet_pivovar_1"
sleep 2
/usr/sbin/iwpriv ath1 mode 0
sleep 2
/usr/sbin/iwconfig ath1 channel 8
sleep 2
/sbin/ifconfig ath1 10.193.119.1 netmask 255.255.255.240 broadcast 10.193.119.15 up
###### ath1 - AP 2
/usr/sbin/wlanconfig ath2 destroy
/usr/sbin/wlanconfig ath2 create wlandev wifi2 wlanmode ap
sleep 2
/usr/sbin/iwconfig ath2 essid "ap_gavanet_pivovar_2"
sleep 2
/usr/sbin/iwpriv ath2 mode 0
sleep 2
/usr/sbin/iwconfig ath2 channel 4
sleep 2
/sbin/ifconfig ath2 10.193.119.17 netmask 255.255.255.240 broadcast 10.193.119.31 up
###### eth0+eth1 - br0 ethernet
/sbin/ifconfig eth0 0.0.0.0 up
/sbin/ifconfig eth1 0.0.0.0 up
/sbin/ifconfig br0 down
/usr/sbin/brctl delbr br0
/usr/sbin/brctl addbr br0
/usr/sbin/brctl addif br0 eth0
/usr/sbin/brctl addif br0 eth1
/sbin/ifconfig br0 10.193.118.17 netmask 255.255.255.248 broadcast 10.193.118.23 up
###### routovani
/sbin/route add default gw 10.193.124.9
Airca resp. Ovislink WL5000 popř. Airca Pro také vypadají jako moc hezké železo. Jedno takové rádio doma mám, ale OpenWRT jsem na něj zatím flashnout nezkoušel (není potřeba).
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.