summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/telnetd.init5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/telnetd.init b/scripts/telnetd.init
index 04f65147..fdb63040 100755
--- a/scripts/telnetd.init
+++ b/scripts/telnetd.init
@@ -52,7 +52,10 @@ start ()
stop ()
{
local -i pid=$( running_pid )
- [ $pid -ne 0 ] && kill $pid
+ if [ $pid -ne 0 ]
+ then kill $pid
+ else return 0
+ fi
}
restart()