View Single Post
richhanz's Avatar
Posts: 28 | Thanked: 7 times | Joined on Jan 2014 @ Netherlands
#26
Originally Posted by Schturman View Post
I created rpm package based on your instaruction
https://openrepos.net/content/schturman/wlan-reset
Nice.

I extended my script:

Code:
#!/bin/sh

DATE_TIME=`date +%Y-%m-%d_%H-%M-%S`
LOG_PATH=/var/log
LOG_FILE=wpa_supplicant.log

OLD_LOG=$LOG_PATH/$LOG_FILE
BAK_LOG=$LOG_PATH/$LOG_FILE.$DATE_TIME

rmmod wlan

# move the log file with a timestamp
mv $OLD_LOG $BAK_LOG

sleep 20

modprobe wlan

sleep 20

# roll over the log file
wpa_cli relog >> $BAK_LOG 2>&1
PS. why it should be 20 sec ?
To give the kernel the change to settle, doing it faster boosted the load of the Jolla to 16+

Likewise the second sleep; doing it faster wpa_cli relog doesn't work.
 

The Following User Says Thank You to richhanz For This Useful Post: