add missing dependency
[openwrt/svn-archive/archive.git] / net / openser / patches / sc.dbtext.patch
1 --- openser-1.0.0-tls.orig/scripts/sc.dbtext 2005-07-29 21:05:36.000000000 +0200
2 +++ openser-1.0.0-tls/scripts/sc.dbtext 2006-01-29 02:30:31.795349688 +0100
3 @@ -62,6 +62,10 @@
4 ##### ----------------------------------------------- #####
5 #### table names
6
7 +if [ -z "$SIP_DOMAIN" ] ; then
8 + SIP_DOMAIN=$(nvram get sip_domain)
9 +fi
10 +
11 # UsrLoc Table
12 if [ -z "$UL_TABLE" ] ; then
13 UL_TABLE=location
14 @@ -247,7 +251,7 @@
15 fi
16
17 if [ -z "$SERDOMAIN" ] ; then
18 - echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN\n"
19 + echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN (with 'nvram set sip_domain=YOUR_SIP_DOMAIN')\n"
20 exit 1
21 fi
22 }