Quote:
Originally Posted by NiLuJe
@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