diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-30 22:52:49 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-04-30 22:52:49 +0000 |
commit | 23386132c92b92d5af9e4a0fe8c6b4adb0419c28 (patch) | |
tree | c4b7153c8d4d9e7a1ac5db3f26aab69875328d0d /openwrt/package/ser/patches/100-sc.patch | |
parent | 304fa6181cf2002f98f3537b4cf625a81ef06d05 (diff) |
revert to older version of 'ser', the new one just doesn't work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@781 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/ser/patches/100-sc.patch')
-rw-r--r-- | openwrt/package/ser/patches/100-sc.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/openwrt/package/ser/patches/100-sc.patch b/openwrt/package/ser/patches/100-sc.patch new file mode 100644 index 0000000000..25ecb9b965 --- /dev/null +++ b/openwrt/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 |