View Single Post
Old 09-04-2015, 04:16 PM   #2376
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by NiLuJe View Post
@tshering: Yeah, something's going wonky with the FT buildsystem when cross-compiling, it's not building the tailored *nix src file with CLOEXEC support, looking into it.
For the moment, I am running this after exiting Koreader:

Code:
#!/bin/sh

# since we have to kill wpa_supplicant anyway ...
[ $(ps | grep -c wlarm_le) -gt 0 ] && wlarm_le -i eth0 down
ifconfig eth0 down
[ $(lsmod | grep -c dhd) -gt 0 ] && /sbin/rmmod -r dhd
[ $(lsmod | grep -c sdio_wifi_pwr) -gt 0 ] && /sbin/rmmod -r sdio_wifi_pwr
killall wpa_supplicant

# try to kill all processes that keep koreader font files open
while :
do
  p=$( lsof | grep 'koreader.*/fonts' | awk 'NR==1 { print $1 }')
  [ "x$p" == "x" ] && break
  kill $p
  [ $? -gt 0 ] && break
done
tshering is offline   Reply With Quote