1

Add original scripts

This commit is contained in:
eleksir
2016-09-04 22:20:40 +03:00
commit 8e3af042d2
128 changed files with 19003 additions and 0 deletions

34
rcv_port.sh Executable file
View File

@@ -0,0 +1,34 @@
#!/bin/sh
RCV_PORT="/proc/tsinfo/sk_rcv_port"
if [ ! -f $RCV_PORT ]; then
exit 0
fi
case "$1" in
start)
echo -n "Start rcv_port: "
PORT="set 139 445 20"
echo "$PORT" > $RCV_PORT
echo -n $PORT
echo .
;;
stop)
echo -n "Stop rcv_port: "
PORT="set"
echo "$PORT" > $RCV_PORT
echo -n $PORT
echo .
;;
restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/rcv_port.sh {start|stop|restart}"
exit 1
esac
exit 0