restore firewall rules when exiting koreader

pull/666/head
chrox 10 years ago
parent 46c8d26b97
commit 54a551a0f5

@ -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

@ -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 ) &
(

Loading…
Cancel
Save