aboutsummaryrefslogtreecommitdiffstats
path: root/package/openser/patches/sc.dbtext.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openwrt.org>2006-01-31 16:51:23 +0000
committerWaldemar Brodkorb <wbx@openwrt.org>2006-01-31 16:51:23 +0000
commitcd5f9b18ff6520398411b0f08a9e1e332f56adb5 (patch)
treeaefa9b5ed016d4ed823d17838d20b2a134d7edf4 /package/openser/patches/sc.dbtext.patch
parent55bf83823eeaa21b55c8d2818ff7da0455e5a9e7 (diff)
downloadupstream-cd5f9b18ff6520398411b0f08a9e1e332f56adb5.tar.gz
upstream-cd5f9b18ff6520398411b0f08a9e1e332f56adb5.tar.bz2
upstream-cd5f9b18ff6520398411b0f08a9e1e332f56adb5.zip
ser -> openser from wr
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3094 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/openser/patches/sc.dbtext.patch')
-rw-r--r--package/openser/patches/sc.dbtext.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/openser/patches/sc.dbtext.patch b/package/openser/patches/sc.dbtext.patch
new file mode 100644
index 0000000000..2a1b7eab1b
--- /dev/null
+++ b/package/openser/patches/sc.dbtext.patch
@@ -0,0 +1,22 @@
+--- openser-1.0.0-tls.orig/scripts/sc.dbtext 2005-07-29 21:05:36.000000000 +0200
++++ openser-1.0.0-tls/scripts/sc.dbtext 2006-01-29 02:30:31.795349688 +0100
+@@ -62,6 +62,10 @@
+ ##### ----------------------------------------------- #####
+ #### table names
+
++if [ -z "$SIP_DOMAIN" ] ; then
++ SIP_DOMAIN=$(nvram get sip_domain)
++fi
++
+ # UsrLoc Table
+ if [ -z "$UL_TABLE" ] ; then
+ UL_TABLE=location
+@@ -247,7 +251,7 @@
+ fi
+
+ if [ -z "$SERDOMAIN" ] ; then
+- echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN\n"
++ echo -e "\nDomain unknown: use usernames with domain or set default domain in SIP_DOMAIN (with 'nvram set sip_domain=YOUR_SIP_DOMAIN')\n"
+ exit 1
+ fi
+ }