diff --git a/kindle/koreader.sh b/kindle/koreader.sh index 99ec213d2..e2bafd5b5 100755 --- a/kindle/koreader.sh +++ b/kindle/koreader.sh @@ -124,3 +124,7 @@ if [ "${STOP_FRAMEWORK}" == "no" -a "${INIT_TYPE}" == "upstart" ] ; then lipc-set-prop com.lab126.pillow disableEnablePillow enable fi +# restore firewall rules +iptables -D INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT +iptables -D INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT + diff --git a/kobo/koreader.sh b/kobo/koreader.sh index 1b9777b42..a55ff3b42 100755 --- a/kobo/koreader.sh +++ b/kobo/koreader.sh @@ -21,6 +21,10 @@ killall hindenburg # finally call the launcher ./reader.lua /mnt/onboard 2> crash.log +# restore firewall rules +iptables -D INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT +iptables -D INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT + # back to nickel again :) ( usleep 400000; /etc/init.d/on-animator.sh ) & (