mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
restore firewall rules when exiting koreader
This commit is contained in:
@@ -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 ) &
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user