aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh')
-rwxr-xr-xsh/nc_serv.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/sh/nc_serv.sh b/sh/nc_serv.sh
index ddf105f..a9cab32 100755
--- a/sh/nc_serv.sh
+++ b/sh/nc_serv.sh
@@ -1,8 +1,9 @@
#!/bin/sh
-while true
-do
+ret=0
+while [ $ret -eq 0 ]; do
nc -l -p 6667
+ ret=$?
echo "Connection closed"
- echo "--------------------------------------------------------------------------------------------"
+ echo "--------------------------------------------------------------------------------------------"
done