diff options
author | Felix Fietkau <nbd@openwrt.org> | 2005-04-30 22:52:49 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2005-04-30 22:52:49 +0000 |
commit | be952e34e888cd4f3e1c83195d9da74c35e7eb62 (patch) | |
tree | 476eff6d81d510c7b5a60aa9a0bd977e8de4b19c /package/ser/patches/100-sc.patch | |
parent | 0914480a1cb22c5027a6086e55646d5ae93b80d6 (diff) | |
download | upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.tar.gz upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.tar.bz2 upstream-be952e34e888cd4f3e1c83195d9da74c35e7eb62.zip |
revert to older version of 'ser', the new one just doesn't work
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@781 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ser/patches/100-sc.patch')
-rw-r--r-- | package/ser/patches/100-sc.patch | 54 |
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 0000000000..25ecb9b965 --- /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 |