Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 19 Nov 2019, 06:09
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
rc.network::run_iw_scan sleep time too short
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [2 Posts]  
Author Message
s243a

Joined: 02 Sep 2014
Posts: 2158

PostPosted: Wed 19 Oct 2016, 03:38    Post subject:  rc.network::run_iw_scan sleep time too short  

rc.network does not connect on startup for a D-Link Dual band N600 but will connect if I use the "Network Wizard (see previous thread)".

with standard sleep times in line 224 to 232 of /etc/rc.d/rc,network

Code:

   rm /tmp/iwscan*.tmp 2>/dev/null
   iwlist "$INTERFACE" scan >/tmp/iwscan1.tmp 2>&1
   if [ -n "$IsPCMCIA" ] ; then
     sleep 1
   else
     usleep 100000
   fi
   iwlist "$INTERFACE" scan >/tmp/iwscan2.tmp 2>&1
ScanListFile=$(du -b /tmp/iwscan*.tmp |sort -n | tail -n1 |cut -f2)

(source, my notes)

I only get three cells in my cell list. However, if I run from the command line

Code:

iwscan ra0 scan


I get 16 cells.

Changing the sleep time to 5 solves the problem but slows down the script a lot.


(Edit: deleted stuff in this post about loops)

Last edited by s243a on Thu 20 Oct 2016, 01:49; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
s243a

Joined: 02 Sep 2014
Posts: 2158

PostPosted: Wed 19 Oct 2016, 03:56    Post subject:  

Not sure about my looping problem above but I noticed that on lines 671 to 674 there is

Code:

  # if we got here, nothing worked, clean up
  # clean up (kills dhcpcd etc)
  cleanUpInterface "$INTERFACE"
  ifconfig "$INTERFACE" down


(Edit: deleted stuff in this post about loops)

I also commented out (see post) because this line was preventing me from connecting to wireless if I had my hard wired Ethernet interface plugged in. As I noted, I am using hard wired for a local network and wireless for my internet connection.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [2 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0300s ][ Queries: 11 (0.0048s) ][ GZIP on ]