Tomato specifics in genconfig.sh
This commit is contained in:
parent
d24eaf9158
commit
dd7273c6d5
|
@ -8,6 +8,7 @@ $Id: Changelog.txt,v 1.242 2011/11/18 11:21:20 nanard Exp $
|
|||
avoid infinite loop in SendResp_upnphttp() in case of error
|
||||
Replaced SendResp_upnphttp() + CloseSocket_upnphttp() by
|
||||
SendRespAndClose_upnphttp()
|
||||
Tomato specifics in genconfig.sh
|
||||
|
||||
2011/07/30:
|
||||
netfilter : Added a tiny_nf_nat.h file to compile with iptables
|
||||
|
|
|
@ -34,6 +34,12 @@ if [ -f ./os.openwrt ]; then
|
|||
OS_VERSION=$(cat ./os.openwrt)
|
||||
fi
|
||||
|
||||
# Tomato USB special case
|
||||
if [ -f ../shared/tomato_version ]; then
|
||||
OS_NAME=Tomato
|
||||
OS_VERSION="Tomato $(cat ../shared/tomato_version)"
|
||||
fi
|
||||
|
||||
${RM} ${CONFIGFILE}
|
||||
|
||||
echo "/* MiniUPnP Project" >> ${CONFIGFILE}
|
||||
|
@ -203,6 +209,21 @@ case $OS_NAME in
|
|||
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
|
||||
FW=netfilter
|
||||
;;
|
||||
Tomato)
|
||||
OS_NAME=UPnP
|
||||
OS_URL=http://tomatousb.org/
|
||||
echo "" >> ${CONFIGFILE}
|
||||
echo "#include <tomato_config.h>" >> ${CONFIGFILE}
|
||||
echo "" >> ${CONFIGFILE}
|
||||
echo "#define USE_NETFILTER 1" >> ${CONFIGFILE}
|
||||
echo "#ifdef LINUX26" >> ${CONFIGFILE}
|
||||
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
|
||||
echo "#endif" >> ${CONFIGFILE}
|
||||
echo "#ifdef TCONFIG_IPV6" >> ${CONFIGFILE}
|
||||
echo "#define ENABLE_IPV6" >> ${CONFIGFILE}
|
||||
echo "#endif" >> ${CONFIGFILE}
|
||||
FW=netfilter
|
||||
;;
|
||||
Darwin)
|
||||
echo "#define USE_IPFW 1" >> ${CONFIGFILE}
|
||||
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
|
||||
|
|
Loading…
Reference in New Issue