|
|
@ -121,12 +121,15 @@ export STARDICT_DATA_DIR="data/dict"
|
|
|
|
# export external font directory
|
|
|
|
# export external font directory
|
|
|
|
export EXT_FONT_DIR="/mnt/us/fonts"
|
|
|
|
export EXT_FONT_DIR="/mnt/us/fonts"
|
|
|
|
|
|
|
|
|
|
|
|
logmsg "Setting up IPTables rules . . ."
|
|
|
|
# Don't try to setup iptables on devices where it doesn't make sense to...
|
|
|
|
# accept input ports for zsync plugin
|
|
|
|
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.ko" ] ; then
|
|
|
|
iptables -A INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT
|
|
|
|
logmsg "Setting up IPTables rules . . ."
|
|
|
|
iptables -A INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT
|
|
|
|
# accept input ports for zsync plugin
|
|
|
|
# accept input ports for calibre companion
|
|
|
|
iptables -A INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT
|
|
|
|
iptables -A INPUT -i wlan0 -p udp --dport 8134 -j ACCEPT
|
|
|
|
iptables -A INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT
|
|
|
|
|
|
|
|
# accept input ports for calibre companion
|
|
|
|
|
|
|
|
iptables -A INPUT -i wlan0 -p udp --dport 8134 -j ACCEPT
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# bind-mount system fonts
|
|
|
|
# bind-mount system fonts
|
|
|
|
if ! grep ${KOREADER_DIR}/fonts/host /proc/mounts > /dev/null 2>&1 ; then
|
|
|
|
if ! grep ${KOREADER_DIR}/fonts/host /proc/mounts > /dev/null 2>&1 ; then
|
|
|
@ -263,9 +266,11 @@ if [ "${STOP_FRAMEWORK}" == "no" -a "${INIT_TYPE}" == "upstart" ] ; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
logmsg "Restoring IPTables rules . . ."
|
|
|
|
if [ -e "/lib/modules/$(uname -r)/kernel/net/ipv4/netfilter/ip_tables.ko" ] ; then
|
|
|
|
# restore firewall rules
|
|
|
|
logmsg "Restoring IPTables rules . . ."
|
|
|
|
iptables -D INPUT -i wlan0 -p udp --dport 8134 -j ACCEPT
|
|
|
|
# restore firewall rules
|
|
|
|
iptables -D INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT
|
|
|
|
iptables -D INPUT -i wlan0 -p udp --dport 8134 -j ACCEPT
|
|
|
|
iptables -D INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT
|
|
|
|
iptables -D INPUT -i wlan0 -p udp --dport 5670 -j ACCEPT
|
|
|
|
|
|
|
|
iptables -D INPUT -i wlan0 -p tcp --dport 49152:49162 -j ACCEPT
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|