--- /etc/init.d/orig/setserial.orig	2003-03-14 13:16:33.000000000 +1300
+++ /etc/init.d/setserial	2003-06-03 11:12:15.000000000 +1200
@@ -31,13 +31,18 @@
 
 . /etc/rc.status
 
+PORTPATH="/dev/"    # with trailing slash!
+#PORTPATH=""
+test -z "$PORTPATH" && cd /dev
+SETSERIAL="/bin/setserial -b"
+PORTS=`for p in ${PORTPATH}ttyS? ${PORTPATH}ttyS??; do test -e $p && echo $p; done`
+
+# Also add a symlink
+#ln -s ../../etc/init.d/setserial /usr/sbin/rcsetserial
+
 rc_reset
 case $1 in
   start|b)
-    cd /dev
-
-    SETSERIAL="/bin/setserial -b"
-    PORTS=`for p in ttyS? ttyS??; do test -e $p && echo $p; done`
 
     run_setserial ()
     {
@@ -229,8 +234,10 @@
     rc_status -v
     ;;
   status)
-    rc_failed 4
-    rc_status -v
+    #rc_failed 4
+    #rc_status -v
+    ${SETSERIAL} -bg ${PORTS} 2> /dev/null
+    rc_status
     ;;
   *)
     echo "usage: setserial {start|stop|status}"

