1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-09 09:49:43 +02:00
openwrt-xburst/package/ser/patches/100-sc.patch

55 lines
1.4 KiB
Diff
Raw Normal View History

--- 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