Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Finnish
  • Search

Ohjema Wlan0 yhteydelle

Keskustelua Gentoo Linuxista suomeksi. Tervetuloa!

Moderator: Chiitoo

Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
Author
Message
Sputnick
n00b
n00b
Posts: 64
Joined: Mon May 10, 2004 11:12 pm

Ohjema Wlan0 yhteydelle

  • Quote

Post by Sputnick » Wed Oct 17, 2007 10:36 pm

Yhteyteni pätkii levottoman paljon. Käytössä dwl-520, 2.6.22-gentoo-r5 & ndiswrapper

Tarttis kehitellä wlan0:lle ,ndiswrapper, seuraavanlainen ohjelma:

Ohjelma tarkkailisi yhteyden tilaa. Aina yhteyden katketessa tämä ohjelma lataisi ndiswrapperin ja iwconfig asetukset uudelleen ja hakisi dhclientillä ip osoitteen reitittimeltä. Ja näin ainakin suurimmat katkeilut loppuisivat.

Onko tälläisiä jo olemassa/ onko tämmöistä vaikea toteuttaa?
Top
Make
n00b
n00b
User avatar
Posts: 48
Joined: Fri Dec 17, 2004 8:37 am

  • Quote

Post by Make » Thu Oct 18, 2007 3:25 pm

Käviskö tuollainen:

Code: Select all

ping -c 1 192.168.1.1 || /etc/init.d/net.eth1 restart

Eli lähetetään yksi tai useampi (-c x) ping-paketti johonkin osoitteeseen. Jos ei tule vastausta, niin käynnistetään verkko uudestaan.
Top
Sputnick
n00b
n00b
Posts: 64
Joined: Mon May 10, 2004 11:12 pm

  • Quote

Post by Sputnick » Sun Oct 21, 2007 2:57 pm

Mistähän syystä tuo katkoo wlan0:n lan yhteyden otoilla? onko liiaksi liikennettä vai mikä maksaa, että kaatuu lan yhteyksissä(ftp ym tiedonsiirtoyritykset). Netissä kyllä pääsee surffaamaan, mutta kftpgrapper, proftpd kaataa netin, sekä selaimen kautta tehdyt yritykset tuottavat saman tuloksen.
Top
~L~
Apprentice
Apprentice
Posts: 154
Joined: Sun Feb 15, 2004 1:54 pm
Location: Finland
Contact:
Contact ~L~
Website

  • Quote

Post by ~L~ » Mon Jan 21, 2008 11:04 pm

Mulla oli tommonen viritys käytössä kun atheros pätki. ssh ja kumppanit jäi kanssa alas jostain syystä.

Code: Select all

#!/bin/bash

### You can comment out the echo lines

while true
do

echo "Check if WLAN is on..."

ip=`ifconfig  ath0 | grep "inet addr" | cut -d ":" -f 2 | cut -d " " -f 1`


if [[ "$ip" == "" ]]

then

echo `date`
echo -e "\033[1;32mWLAN is down.\033[0m"
echo -e "\033[1;31mRestarting WLAN and related services...\033[0m"

/etc/init.d/net.ath0 restart
/etc/init.d/sshd start
/etc/init.d/apache2 start
/etc/init.d/ntp-client start
/etc/init.d/gnump3d start



else

echo `date`
echo -e "\033[1;32mWLAN is up. ip is $ip\033[0m"

fi

sleep 60
done
Top
Obi-Lan
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Fri Jan 21, 2005 3:44 pm
Location: Riihimäki

  • Quote

Post by Obi-Lan » Tue Jan 22, 2008 4:11 pm

Mikä piirisarja sulla on?
Top
~L~
Apprentice
Apprentice
Posts: 154
Joined: Sun Feb 15, 2004 1:54 pm
Location: Finland
Contact:
Contact ~L~
Website

  • Quote

Post by ~L~ » Tue Jan 22, 2008 5:22 pm

Ei oo koneessa kiinni enää kun nyt on pistokkeet joka huoneessa, mutta eiköhän se toi kortti ole.

http://www.linuxcomp.net/component/page ... Itemid,26/

Eli AR2414
Top
Obi-Lan
Apprentice
Apprentice
User avatar
Posts: 230
Joined: Fri Jan 21, 2005 3:44 pm
Location: Riihimäki

  • Quote

Post by Obi-Lan » Tue Jan 22, 2008 9:20 pm

Eiks atherokselle löydy ihan natiiviajuritkin? emerge madwifi-ng?
Top
~L~
Apprentice
Apprentice
Posts: 154
Joined: Sun Feb 15, 2004 1:54 pm
Location: Finland
Contact:
Contact ~L~
Website

  • Quote

Post by ~L~ » Tue Jan 22, 2008 9:48 pm

jep. Kunhan vaan kirjottelin, kun topikkiin törmäsin. Natiivi ajurit oli mulla käytössä. Silti pätki 1-2 kertaa vuorokaudessa.

edit: näähän onkin kaikki aika vanhoja aiheita täällä suomi puolella...
Top
Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Finnish”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy