summaryrefslogtreecommitdiffstats
path: root/package/ser/patches/100-sc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/ser/patches/100-sc.patch')
-rw-r--r--package/ser/patches/100-sc.patch54
1 files changed, 54 insertions, 0 deletions
diff --git a/package/ser/patches/100-sc.patch b/package/ser/patches/100-sc.patch
new file mode 100644
index 000000000..25ecb9b96
--- /dev/null
+++ b/package/ser/patches/100-sc.patch
@@ -0,0 +1,54 @@
+--- ser-0.8.14.orig/scripts/sc 2004-07-27 11:41:40.000000000 +0200
++++ ser-0.8.14/scripts/sc 2005-02-07 23:10:30.000000000 +0100
+@@ -19,7 +19,7 @@
+ # configuration for starting/stopping ser
+ PID_FILE=/var/run/ser.pid
+ SYSLOG=1 # 0=output to console, 1=output to syslog
+-STARTOPTIONS= # for example -dddd
++STARTOPTIONS="-m 5"
+
+ # ser's FIFO server
+ if [ -z "$SER_FIFO" ]; then
+@@ -338,11 +338,7 @@
+ if [ $# -eq 2 ] ; then
+ fifo_cmd ul_show_contact $UL_TABLE $2
+ elif [ $# -eq 1 ] ; then
+- printf "Dumping all contacts may take long: are you sure you want to proceed? [Y|N] "
+- read answer
+- if [ "$answer" = "y" -o "$answer" = "Y" ] ; then
+- fifo_cmd ul_dump
+- fi
++ fifo_cmd ul_dump
+ else
+ echo "wrong number of params for usrloc show"
+ usage
+@@ -590,7 +586,7 @@
+ case $1 in
+
+ start)
+- DIR=`dirname $0`
++ DIR=/usr/sbin
+ echo
+ printf "Starting SER : "
+ if [ -r $PID_FILE ] ; then
+@@ -612,6 +608,7 @@
+ printf "Stopping SER : "
+ if [ -r $PID_FILE ] ; then
+ kill `cat $PID_FILE`
++ rm $PID_FILE
+ echo "stopped"
+ else
+ echo No PID file found!
+@@ -621,10 +618,11 @@
+ ;;
+
+ restart)
+- DIR=`dirname $0`
++ DIR=/usr/sbin
+ printf "Stopping SER : "
+ if [ -r $PID_FILE ] ; then
+ kill `cat $PID_FILE`
++ rm $PID_FILE
+ echo "stopped"
+ else
+ echo No PID file found! SER problably not running